mirror of
https://github.com/felixrieseberg/macintosh.js.git
synced 2024-12-28 02:32:13 +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) {
|
||||
case "mousemove":
|
||||
hasMouseMove = true;
|
||||
mouseMoveX += inputEvent.dx;
|
||||
mouseMoveY += inputEvent.dy;
|
||||
// Make change according to https://github.com/felixrieseberg/macintosh.js/issues/6#issuecomment-665981700
|
||||
mouseMoveX = inputEvent.dx;
|
||||
mouseMoveY = inputEvent.dy;
|
||||
break;
|
||||
case "mousedown":
|
||||
case "mouseup":
|
||||
|
Loading…
Reference in New Issue
Block a user