pmndrs / use-gesture

👇Bread n butter utility for component-tied mouse/touch gestures in React and Vanilla Javascript.

Home Page:https://use-gesture.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using modifierKey causes the mac pinch event to return

yjhtry opened this issue · comments

Describe the bug

When I change this parameter to modifierKey: 'metaKey',, the native pinch event of the mac touchpad fails.

image

I found this code in the source code
image

Sandbox or Video

https://codesandbox.io/s/boring-paper-2zxyrw

Information:

  • Use Gesture version: 10.2.24

I want to keep the original events

You can now use modifierKey: ['ctrlKey', 'metaKey'] in 10.3.0.

You can now use modifierKey: ['ctrlKey', 'metaKey'] in 10.3.0.

Thank you so much.

Best Regards!