use-gesture
use-gesture copied to clipboard
Using alt+left for navigation prevents all gestures on elements with axis: 'y'
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:
- [x] I've read the documentation.
- [x] If this is an issue with drag, I've tried setting
touch-action: noneto the draggable element.