Re: [w3c/uievents] Needs alternative WheelEvent.deltaMode, WheelEvent.delta(X|Y|Z) (#181)

I fell down this rabbit-hole again recently and found a (mostly) undocumented but interoperable behavior:
Pinch gesture on an Apple trackpad generates a `wheel` event with its `ctrlKey` set to `true` (even when the control key is not pressed).

* #31 (main issue discussing this behavior)
* #337 (somewhat related)

Tested on a M1 MacBook Air with macOS Sonoma 14.6.1
* Firefox Developer Edition v131.0b9
* Google Chrome v128.0.6613.85
* Safari v18

I found this while trying to understand how tldraw is able to distinguish between a two-finger pinch and a two-finger drag.

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

Message ID: <w3c/uievents/issues/181/2393444069@github.com>

Received on Friday, 4 October 2024 11:04:36 UTC