fix(core): disable drag when using multi-touch (#1448)
* fix(core): disable drag when using multi-touch * chore(changeset): add
This commit is contained in:
5
.changeset/selfish-vans-report.md
Normal file
5
.changeset/selfish-vans-report.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@vue-flow/core": patch
|
||||
---
|
||||
|
||||
Disable dragging when using multi-touch
|
||||
@@ -185,6 +185,10 @@ export function useDrag(params: UseDragParams) {
|
||||
}
|
||||
|
||||
const eventStart = (event: UseDragEvent, nodeEl: Element) => {
|
||||
if (event.sourceEvent.type === 'touchmove' && event.sourceEvent.touches.length > 1) {
|
||||
return
|
||||
}
|
||||
|
||||
if (nodeDragThreshold.value === 0) {
|
||||
startDrag(event, nodeEl)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user