- From: Nicolò Ribaudo via GitHub <noreply@w3.org>
- Date: Wed, 16 Jul 2025 16:46:53 +0000
- To: public-pointer-events@w3.org
Awesome :) I work for a w3c member, so I'm happy to join the WG and the meetings if you think it'd be useful. --- Fwiw, while playing with userland solutions for this I realized that a possible approach is not specific to pinch to zoom and touch gestures. One could have an event, `zoom`, with the following properties: - clientX/clientY (and related coordinate systems) - zoomFactor 1. When performing a pinch-to-zoom gesture, it would fire the event with (x,y) set to the center of the fingers, and with zoomFactor set to the percentage that the difference between the fingers increased/decreased. 1. When performing a Ctrl+wheel, the coordinates would be the mouse coordinates and the zoomFactor would be some platform-specific amount computed based on the "wheel scroll speed". 1. When performing a Ctrl+Plus and Ctrl+Minus, or using the browser's "zoom in/out" buttons, the coordinates would be either NaN or the center of the window, and the zoom factor would again be browser-defined. Listeners for these events would probably need to be passive by default, unless `passive: false` is explicitly set. These events would be cancelable, so that user code can define their own zoom behavior. Maybe the event dispatched by the browser zoom buttons should not be cancelable. -- GitHub Notification of comment by nicolo-ribaudo Please view or discuss this issue at https://github.com/w3c/pointerevents/issues/543#issuecomment-3079428954 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 16 July 2025 16:46:54 UTC