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

Using alt+left for navigation prevents all gestures on elements with axis: 'y' #636

Open
2 tasks done
Linksku opened this issue Nov 4, 2023 · 0 comments
Open
2 tasks done
Assignees

Comments

@Linksku
Copy link

Linksku commented Nov 4, 2023

Describe the bug

A clear and concise description of what the bug is.

I have a draggable element with axis: 'y'. After I navigate back using alt+left, the element is no longer draggable.

The issue is with KEYS_DELTA_MAP, it causes state.axis to be x, which causes state._blocked to be true. I think this puts use-gesture in an unexpected state, so no gestures on the element work. The only way to get it working again is to refresh the page or press the up/down keys.

As a temporary fix, I added keyboardDisplacement: 0.

Information:

  • Use Gesture version: @10.3.0
  • Device: Thinkpad
  • OS: Win11
  • Browser: Chrome 118

Checklist:

  • I've read the documentation.
  • If this is an issue with drag, I've tried setting touch-action: none to the draggable element.
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