fix movement touch

beta.r3js.org
-=yb4f310 2017-11-18 14:18:25 +01:00
parent c810d60455
commit 78b29c7306
1 changed files with 4 additions and 4 deletions

View File

@ -641,10 +641,10 @@ GameLib.System.Input.prototype.onTouchMove = function (event) {
down += diffY;
}
this.touches[id].right += right;
this.touches[id].left += left;
this.touches[id].up += up;
this.touches[id].down += down;
this.touches[id].right = right;
this.touches[id].left = left;
this.touches[id].up = up;
this.touches[id].down = down;
this.touches[id].lastTouchX = event.changedTouches[id].pageX;
this.touches[id].lastTouchY = event.changedTouches[id].pageY;
this.touches[id].pageX = event.changedTouches[t].pageX;