Skip to content

Commit

Permalink
Merge pull request #143 from ajrowland/patch-1
Browse files Browse the repository at this point in the history
Check if event is cancelable
  • Loading branch information
weotch authored Apr 9, 2024
2 parents 8e2c9f4 + 88ad859 commit 83e8def
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/concerns/dragging.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ export default
methods:

# Cancel an Event
stopEvent: (e) -> e.preventDefault()
stopEvent: (e) ->
if e.cancelable
then e.preventDefault()

# Keep track of whether user is dragging
onPointerDown: (pointerEvent) ->
Expand Down

0 comments on commit 83e8def

Please sign in to comment.