fix movement touch
parent
c810d60455
commit
78b29c7306
|
@ -641,10 +641,10 @@ GameLib.System.Input.prototype.onTouchMove = function (event) {
|
||||||
down += diffY;
|
down += diffY;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.touches[id].right += right;
|
this.touches[id].right = right;
|
||||||
this.touches[id].left += left;
|
this.touches[id].left = left;
|
||||||
this.touches[id].up += up;
|
this.touches[id].up = up;
|
||||||
this.touches[id].down += down;
|
this.touches[id].down = down;
|
||||||
this.touches[id].lastTouchX = event.changedTouches[id].pageX;
|
this.touches[id].lastTouchX = event.changedTouches[id].pageX;
|
||||||
this.touches[id].lastTouchY = event.changedTouches[id].pageY;
|
this.touches[id].lastTouchY = event.changedTouches[id].pageY;
|
||||||
this.touches[id].pageX = event.changedTouches[t].pageX;
|
this.touches[id].pageX = event.changedTouches[t].pageX;
|
||||||
|
|
Loading…
Reference in New Issue