-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add macOS & Wayland events for trackpad zoom and rotate gestures #2419
base: master
Are you sure you want to change the base?
Conversation
Please, merge this 🙏 🙏 🙏 I really want Magic Trackpad gestures in my apps... |
I added wayland support, but I'm not really sure where to call |
This is done. I can't add Windows or X11 support because I can't test them, but if someone wants to here's information: WindowsAdd in Firefox has an example of using these events: https://searchfox.org/mozilla-central/rev/f2c181a7ab3bfea4d2266521e6eac713630479b3/widget/windows/nsWinGesture.cpp#142-204 You might need to set up gesture config, as described above in that file. Make sure that the resulting value sent to Make sure that zooming doesn't emit ctrl + scroll events once implemented. I'm not sure if it does this currently, but there was a reference to that in the windows documentation. |
Implements #90 for macOS with two new events: TrackpadZoom and TrackpadRotate. These events can also be implemented for Windows and Linux X11/Wayland, but I do not have a way to test those platforms. Zoom will need to make sure to use a similar scale on all platforms and rotate should use degrees.
tests/event.c
.