Skip to content

Commit

Permalink
fix: click event below iOS 13 do not take effect
Browse files Browse the repository at this point in the history
  • Loading branch information
DAHUIAAAAA committed Dec 3, 2023
1 parent 67cae8f commit b878b81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@interactjs/core/interactablePreventDefault.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function checkAndPreventDefault (interactable: Interactable, scope: Scope, event
}

// don't preventDefault of pointerdown events
if (/^(mouse|pointer|touch)*(down|start)/i.test(event.type)) {
if (/^(mouse|pointer|touch)*(down|start|end)/i.test(event.type)) {
return
}

Expand Down

0 comments on commit b878b81

Please sign in to comment.