Replace webkitMovementX with movementX

Bug: T104758
Bug: T77869
Change-Id: Ied88588a3db3a773b02799568da71ecd6c66a2fd
This commit is contained in:
Gergő Tisza 2015-07-06 10:44:16 -07:00
parent d00f0004ec
commit 742a3473a6

View file

@ -416,12 +416,12 @@
* @param {jQuery.Event} e The mousemove event object
*/
LIP.mousemove = function ( e ) {
// This is a fake mousemove event triggered by Chrome, ignore it
// T77869 ignore fake mousemove events triggered by Chrome
if (
e
&& e.originalEvent
&& e.originalEvent.webkitMovementX === 0
&& e.originalEvent.webkitMovementY === 0
&& e.originalEvent.movementX === 0
&& e.originalEvent.movementY === 0
) {
return;
}