Skip to content

Commit

Permalink
Remove webkitMovement deprecation warning
Browse files Browse the repository at this point in the history
Starting from Chrome 45, the following warnings appears in the console:
'webkitMovementX' is deprecated. Please use 'movementX' instead.
'webkitMovementY' is deprecated. Please use 'movementY' instead.
  • Loading branch information
dmnsgn committed Oct 26, 2015
1 parent e415b8f commit 8646c6f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/sketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@
var object = {};

for ( var key in target ) {

if ( key === 'webkitMovementX' || key === 'webkitMovementY' )
continue;

if ( isFunction( target[ key ] ) )

Expand Down

0 comments on commit 8646c6f

Please sign in to comment.