We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22ad05d commit dab5ab4Copy full SHA for dab5ab4
packages/core/src/composables/useDrag.ts
@@ -217,6 +217,9 @@ export function useDrag(params: UseDragParams) {
217
if (distance > nodeDragThreshold.value) {
218
startDrag(event, nodeEl)
219
}
220
+
221
+ // we have to ignore very small movements as they would be picked up as regular clicks even though a potential drag might have been registered as well
222
+ dragAborted = distance >= 0.5 && distance < nodeDragThreshold.value
223
224
225
// skip events without movement
@@ -225,8 +228,6 @@ export function useDrag(params: UseDragParams) {
228
mousePosition = getEventPosition(event.sourceEvent, containerBounds!)
226
229
227
230
updateNodes(pointerPos)
- } else {
- dragAborted = true
231
232
233
0 commit comments