Add rotation gesture support for trackpad sources#7453
Conversation
|
|
|
I implemented GestureEvent support utilizing |
emilk
left a comment
There was a problem hiding this comment.
Thanks!
Code LGTM, but we should have some way of testing this in egui_demo_app. We have the Multi Touch demo, but that doesn't work with this PR.
|
Preview available at https://egui-pr-preview.github.io/pr/7453-rotationgesture |
|
The |
|
We could rename |
|
Keeping it called I have also been working on some changes in |
c0d186a to
711ce9f
Compare
emilk
left a comment
There was a problem hiding this comment.
Very nice - works great with my trackpad!
Co-authored-by: Emil Ernerfeldt <[email protected]> Co-authored-by: Lucas Meurer <[email protected]>
This adds support to receive rotation gesture information from sources that don't provide touch events, such as trackpads on MacOS. Currently, only the
winitbackend passes through the necessary information. I would also like to add support for the web backend on Safari, as that generates aGestureEvent(MDN, WebKit JS) with rotation information. However, since that is a non-standard API, it is not yet exposed inweb-sys.