Re: [w3c/uievents] Wheel event: determine difference between trackpad and mouse events (Issue #337)

I'm also facing a similar issue while developing a gui editor. I'd like to have a large surface which users can pan and zoom similar to the experience on a tablet device. The surface is implemented using canvas or svg with custom coordinates, so the default DOM scrollbars do not apply. To implement such UX, I need a way to integrate two-finger scroll and pinch zoom, so that the user can zoom in while panning the surface. 

However, `touch*` events are not fired on desktop, and `wheel` event has very limited data. If `pointer*` events contain `pointers` like `touches` in `touch*` events, I'll be able to calculate various gestures although more high-level apis might be preferable.

Hope to see more discussions and enhancements soon!

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/uievents/issues/337#issuecomment-1356047752
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/uievents/issues/337/1356047752@github.com>

Received on Saturday, 17 December 2022 05:20:39 UTC