Skip to content

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

Description

@megaarmos

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions