From 473033ba7b68d80a8b82b8f709ecd873223855be Mon Sep 17 00:00:00 2001 From: Jonathan Potts Date: Wed, 29 Jul 2020 19:20:03 -0700 Subject: [PATCH] Update input.js Make change according to https://github.com/felixrieseberg/macintosh.js/issues/6#issuecomment-665981700 --- src/renderer/input.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/renderer/input.js b/src/renderer/input.js index 6005f0d..48bac1c 100644 --- a/src/renderer/input.js +++ b/src/renderer/input.js @@ -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":