Skip to content
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

Extend touchpad magnify and rotate gestures support to Web #2963

Open
megaboy101 opened this issue Jul 17, 2023 · 3 comments
Open

Extend touchpad magnify and rotate gestures support to Web #2963

megaboy101 opened this issue Jul 17, 2023 · 3 comments
Labels

Comments

@megaboy101
Copy link

Hey all,

I recently ran into an issue where I wanted to add two-finger pinch/zoom to a webassembly-compiled Bevy app I was building.

However it looks like magnify and rotate gesture recognition is currently limited to MacOS (#2157).

I'm not too familiar with Winit's internals, but I'd be interested in adding a webassembly implementation to support these gesture events if possible.

@daxpedda
Copy link
Member

daxpedda commented Jul 18, 2023

Hm, I'm not sure we should, it's not supported but we could polyfill it of course. See the MDN documentation on how to polyfill this.

Safari has actually a dedicated API (MDN) for it, which we could definitely implement.

@kchibisov do we intend to polyfill this for other targets too if they don't have official support for it? I saw in #2157 that Wayland and Windows support it, does X11 support it?

@kchibisov
Copy link
Member

I think X11 should also support this, it's all coming from the libinput.

@daxpedda
Copy link
Member

Alright, let's just go ahead with this then.

@megaboy101 PR's are welcome, I'm happy to review one. Feel free to ping if you need any guidance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants