Update eaglermobile.user.js

This commit is contained in:
Colbster937 2024-05-28 09:08:27 -05:00 committed by GitHub
parent 0a58a80228
commit 27cda8af92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -219,10 +219,7 @@ function insertCanvasElements() {
}
e.movementX = touch.pageX - previousX;
e.movementY = touch.pageY - previousY;
var evt = new MouseEvent("mousemove", {
movementX: e.movementX,
movementY: e.movementY
});
var evt = window.fakelock ? new MouseEvent("mousemove", {movementX: e.movementX, movementY: e.movementY}) : new WheelEvent("wheel", {"wheelDeltaY": e.movementY});
canvas.dispatchEvent(evt);
previousX = touch.pageX;
previousY = touch.pageY;