From 9a17c17e34bedc0c882f0ba60d3a60bf7c8c9f98 Mon Sep 17 00:00:00 2001 From: jforbes Date: Fri, 4 Sep 2015 14:20:32 -0400 Subject: [PATCH] Skip copying webkitMovementX/Y webkitMovementX/Y seem to be deprecated in Chrome 45+, this fix skips those keys. Fixes #2548 --- src/js/utils/events.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js/utils/events.js b/src/js/utils/events.js index c210444bab..6516d26ebf 100644 --- a/src/js/utils/events.js +++ b/src/js/utils/events.js @@ -236,7 +236,9 @@ export function fixEvent(event) { for (var key in old) { // Safari 6.0.3 warns you if you try to copy deprecated layerX/Y // Chrome warns you if you try to copy deprecated keyboardEvent.keyLocation - if (key !== 'layerX' && key !== 'layerY' && key !== 'keyLocation') { + // and webkitMovementX/Y + if (key !== 'layerX' && key !== 'layerY' && key !== 'keyLocation' && + key !== 'webkitMovementX' && key !== 'webkitMovementY') { // Chrome 32+ warns if you try to copy deprecated returnValue, but // we still want to if preventDefault isn't supported (IE8). if (!(key === 'returnValue' && old.preventDefault)) {