Implement panning with touchpad and/or scroll-wheel#221
Implement panning with touchpad and/or scroll-wheel#221podusowski merged 3 commits intopodusowski:mainfrom
Conversation
|
@podusowski it would be great if you could push a release after this one 🙏🏻 |
|
0.28.0 is live. |
|
I don't understand this change, why should the scroll-wheel pan? |
|
I think this arrangement comes from egui / winit stack. Zoom event exists too, through on native platforms and web it is triggered by ctrl-wheel. On Android, where I mainly use Walkers, it works by two-finger zoom gesture as expected, so I haven't put much thought on this. I suppose we could make it configurable. |
|
I would love it if scrolling on a mouse would zoom, and two-finger-pan on a touch-pad would pan. Unfortunately they produce the same "Scroll" event, so it is difficult to distinguish what is what. There is a similar discussion here: I'm sure there is some way to accomplish it, but will likely require some plumbing in egui. PRs welcome :) |
CHANGELOG.mdwas updated with relevant information (or the change was purely internal).