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:
@@ -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