dom-examples icon indicating copy to clipboard operation
dom-examples copied to clipboard

Multi-touch example is broken

Open saschwarz opened this issue 1 year ago • 3 comments

Testing of https://mdn.github.io/dom-examples/touchevents/Multi-touch_interaction.html on OS X 14.2.1 in Safari 17.2.1 and Chrome 121.0.6167.184 (Official Build) (x86_64) doesn't respond to touch, hold, or multi touch interactions. Nothing is logged to the screen or to the console.

saschwarz avatar Feb 19 '24 14:02 saschwarz

also broken is this related one: https://mdn.github.io/dom-examples/pointerevents/Pinch_zoom_gestures.html on windows 11 in firefox 129 and chrome 128

eyaler avatar Aug 28 '24 07:08 eyaler

https://mdn.github.io/dom-examples/pointerevents/Pinch_zoom_gestures.html is Working for me on Windows 11 Chrome 133.0.6943.127 (Official Build) (64-bit) when using my touch screen.

However https://mdn.github.io/dom-examples/touchevents/Multi-touch_interaction.html is not working for me in the same Windows 11 Chrome. It is working for me on iOS 18.1 Safari 604.1

jrupp avatar Feb 27 '25 14:02 jrupp

@saschwarz are you referring to multi-touch interactions as supported on a Macintosh laptops and/or Magic Trackpad? I don't believe that those use the same APIs for the touchscreen touch that that sample is showcasing. I'm investigating both touchscreen touch and Apple trackpad touch gestures in our app too. The same might be true of your comment @eyaler, it sounds like you're talking about a trackpad as well.

I found this helpful article that explains that those events are generally mapped to mouseWheel events in browsers, and that there hasn't been a great consensus formed with how to handle them, but the crux is they don't emit touch* events that are used in these examples.

franknoirot avatar Jun 04 '25 13:06 franknoirot