From 3515b406d5d903b5c3dff3829fd416c06cd8f6e1 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Fri, 29 Sep 2017 07:18:22 +0200 Subject: [PATCH] nothing much but ok --- src/game-lib-system-input.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/game-lib-system-input.js b/src/game-lib-system-input.js index bb36903..9842c1f 100644 --- a/src/game-lib-system-input.js +++ b/src/game-lib-system-input.js @@ -264,22 +264,22 @@ GameLib.System.Input.prototype.onTouchMove = function(touchControl) { if (event.changedTouches[t].pageX > this.touches[id].pageX) { right = 1; - left -= 1; + left = -1; } if (event.changedTouches[t].pageX < this.touches[id].pageX) { left = 1; - right -= 1; + right = -1; } if (event.changedTouches[t].pageY < this.touches[id].pageY) { up = 1; - down -= 1; + down = -1; } if (event.changedTouches[t].pageY > this.touches[id].pageY) { down = 1; - up -= 1; + up = -1; } this.touches[id].right += right;