mirror of
https://github.com/FlamedDogo99/EaglerMobile.git
synced 2024-11-23 20:46:04 -08:00
Update eaglermobile.user.js
This commit is contained in:
parent
0a58a80228
commit
27cda8af92
|
@ -219,10 +219,7 @@ function insertCanvasElements() {
|
||||||
}
|
}
|
||||||
e.movementX = touch.pageX - previousX;
|
e.movementX = touch.pageX - previousX;
|
||||||
e.movementY = touch.pageY - previousY;
|
e.movementY = touch.pageY - previousY;
|
||||||
var evt = new MouseEvent("mousemove", {
|
var evt = window.fakelock ? new MouseEvent("mousemove", {movementX: e.movementX, movementY: e.movementY}) : new WheelEvent("wheel", {"wheelDeltaY": e.movementY});
|
||||||
movementX: e.movementX,
|
|
||||||
movementY: e.movementY
|
|
||||||
});
|
|
||||||
canvas.dispatchEvent(evt);
|
canvas.dispatchEvent(evt);
|
||||||
previousX = touch.pageX;
|
previousX = touch.pageX;
|
||||||
previousY = touch.pageY;
|
previousY = touch.pageY;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user