mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-16 20:35:09 +00:00
Replace webkitMovementX with movementX
Bug: T104758 Bug: T77869 Change-Id: Ied88588a3db3a773b02799568da71ecd6c66a2fd
This commit is contained in:
parent
d00f0004ec
commit
742a3473a6
|
@ -416,12 +416,12 @@
|
||||||
* @param {jQuery.Event} e The mousemove event object
|
* @param {jQuery.Event} e The mousemove event object
|
||||||
*/
|
*/
|
||||||
LIP.mousemove = function ( e ) {
|
LIP.mousemove = function ( e ) {
|
||||||
// This is a fake mousemove event triggered by Chrome, ignore it
|
// T77869 ignore fake mousemove events triggered by Chrome
|
||||||
if (
|
if (
|
||||||
e
|
e
|
||||||
&& e.originalEvent
|
&& e.originalEvent
|
||||||
&& e.originalEvent.webkitMovementX === 0
|
&& e.originalEvent.movementX === 0
|
||||||
&& e.originalEvent.webkitMovementY === 0
|
&& e.originalEvent.movementY === 0
|
||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue