Skip to content

Commit

Permalink
Added support for event.cancelable
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Helvik committed Dec 13, 2019
1 parent 8192b12 commit 4260dcb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "proposal-move-events",
"version": "1.4.0",
"version": "1.4.1",
"main": "dist.js",
"repository": "https://github.com/adrianhelvik/proposal-move-events.git",
"author": "Adrian Helvik <[email protected]>",
Expand Down
4 changes: 2 additions & 2 deletions src/moveHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ MoveEvent.fromTouchStart = function(
instance.preventDefault = function() {
event.preventDefault()
}
instance.cancelable = event.cancelable
instance.cancelable = event.cancelable !== false
instance.setDerivedProperties()
return instance
}
Expand Down Expand Up @@ -307,7 +307,7 @@ MoveEvent.fromMouseDown = function(
instance.preventDefault = function() {
event.preventDefault()
}
instance.cancelable = event.cancelable
instance.cancelable = event.cancelable !== false
instance.setDerivedProperties()
return instance
}
Expand Down

0 comments on commit 4260dcb

Please sign in to comment.