Update input.js

Make change according to https://github.com/felixrieseberg/macintosh.js/issues/6#issuecomment-665981700
This commit is contained in:
Jonathan Potts 2020-07-29 19:20:03 -07:00 committed by GitHub
parent 3aae0c143c
commit 473033ba7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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":