You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is a bug with winit or if it's a bug in Firefox, but I'm implementing pinch to zoom and I've found that when two fingers are moving at once, only one of them will be updated. It works just fine in Chrome.
I have been investigating this - the difference between Firefox and Chrome in this case is that Firefox does not send pointermove events for all fingers, only the first one. I'm not sure if this is intended behavior, but in any case I think that winit should be listening to the touchmove event for touch moves.
I ran my test site on Firefox and used the remote debugger to track the pointermove events, and it's a little hard to see because it batches them, but when I pinch, you can see it sends lots of events for pointer 0, but none for the other pointer.
Whereas, in Chrome, there are separate events for each pointer:
I'm going to try fixing this and I'll create a pull request when I'm done.
Description
I'm not sure if this is a bug with winit or if it's a bug in Firefox, but I'm implementing pinch to zoom and I've found that when two fingers are moving at once, only one of them will be updated. It works just fine in Chrome.
I built a tool to visualise the touch inputs which I've hosted here: https://bogoblin.github.io/winit-touch-test/ or you can look at the repo here: https://github.com/bogoblin/winit-touch-test/
Tested browsers
Firefox
Tested devices
Google Pixel 6
Winit version
0.30.8
The text was updated successfully, but these errors were encountered: