Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gesture state: ctrlKey always true during pinch with usePinch #683

Open
2 tasks done
jiito opened this issue Oct 28, 2024 · 0 comments
Open
2 tasks done

Gesture state: ctrlKey always true during pinch with usePinch #683

jiito opened this issue Oct 28, 2024 · 0 comments
Assignees

Comments

@jiito
Copy link

jiito commented Oct 28, 2024

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:

  • I've read the documentation.
  • If this is an issue with drag, I've tried setting touch-action: none to the draggable element.

Thanks in advance for any help!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants