Skip to content

Commit

Permalink
Skip copying webkitMovementX/Y
Browse files Browse the repository at this point in the history
The following warnings are observed in Chrome 45.0 and 47.0 (OSX):
`'webkitMovementX' is deprecated. Please use 'movementX' instead.`

`webkitMovementX/Y` seem to be deprecated in Chrome 45+, so skip copying
them. This fix should eliminate these warnings.
  • Loading branch information
Xin Zhang committed Oct 6, 2015
1 parent aadd687 commit add4595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@

var returnTrue = function(){return true},
returnFalse = function(){return false},
ignoreProperties = /^([A-Z]|returnValue$|layer[XY]$)/,
ignoreProperties = /^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,
eventMethods = {
preventDefault: 'isDefaultPrevented',
stopImmediatePropagation: 'isImmediatePropagationStopped',
Expand Down

0 comments on commit add4595

Please sign in to comment.