mirror of
https://github.com/felixrieseberg/macintosh.js.git
synced 2024-12-28 18:29:29 +00:00
Update input.js
Make change according to https://github.com/felixrieseberg/macintosh.js/issues/6#issuecomment-665981700
This commit is contained in:
parent
3aae0c143c
commit
473033ba7b
@ -43,8 +43,9 @@ function tryToSendInput() {
|
|||||||
switch (inputEvent.type) {
|
switch (inputEvent.type) {
|
||||||
case "mousemove":
|
case "mousemove":
|
||||||
hasMouseMove = true;
|
hasMouseMove = true;
|
||||||
mouseMoveX += inputEvent.dx;
|
// Make change according to https://github.com/felixrieseberg/macintosh.js/issues/6#issuecomment-665981700
|
||||||
mouseMoveY += inputEvent.dy;
|
mouseMoveX = inputEvent.dx;
|
||||||
|
mouseMoveY = inputEvent.dy;
|
||||||
break;
|
break;
|
||||||
case "mousedown":
|
case "mousedown":
|
||||||
case "mouseup":
|
case "mouseup":
|
||||||
|
Loading…
Reference in New Issue
Block a user