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

onDragStart values of direction, delta are oftenly [0, 0] #686

Open
2 tasks done
megaarmos opened this issue Dec 15, 2024 · 0 comments
Open
2 tasks done

onDragStart values of direction, delta are oftenly [0, 0] #686

megaarmos opened this issue Dec 15, 2024 · 0 comments
Assignees

Comments

@megaarmos
Copy link

megaarmos commented Dec 15, 2024

Describe the bug:

When the onDragStart event is fired, the values for direction and delta are not determined. In rare occasions, they return proper values. Below are the logs when onDragStart is triggered:

onDragStart direction: [0, 0] 
onDragStart delta: [0, 0]

This code is using gestures from @vueuse/gesture. It always works as expected, with the values for direction and delta being determined correctly when onDragStart is fired:

onDragStart direction: [0, -1]
onDragStart delta: [0, -5]

Information:

  • @use-gesture/vanilla: 10.3.1
  • Device: Desktop
  • OS: Windows
  • Browser: Google Chrome

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