Describe the bug
When working with the usePinch hook, the value of ctrlKey, event.ctrlKey are both true when the hook's callback is called. The expected behavior is that these values are only true when I am physically holding down the ctrlKey. My intended use is to filter out the wheel plus control gesture.
Additionally, I tried using down, and buttons. But these always seem to be false and 0 respectively.
From the following issues, my understanding is that this has to do with how Chromium handles pinch events on a Mac.
#401
#80
Sandbox or Video
https://codesandbox.io/p/sandbox/chntrj
Information:
- Use Gesture version:
10.3.1
- Device: Macbook Pro
- OS: Sonoma 14.5
- Browser: Arc
Checklist:
Thanks in advance for any help!!
Describe the bug
When working with the
usePinchhook, the value ofctrlKey,event.ctrlKeyare bothtruewhen the hook's callback is called. The expected behavior is that these values are only true when I am physically holding down thectrlKey. My intended use is to filter out the wheel plus control gesture.Additionally, I tried using
down, andbuttons. But these always seem to befalseand0respectively.From the following issues, my understanding is that this has to do with how Chromium handles pinch events on a Mac.
#401
#80
Sandbox or Video
https://codesandbox.io/p/sandbox/chntrj
Information:
10.3.1Checklist:
touch-action: noneto the draggable element.Thanks in advance for any help!!