diff --git a/c55930et90.js b/c55930et90.js index 721483a..cb13759 100644 --- a/c55930et90.js +++ b/c55930et90.js @@ -12,15 +12,10 @@ if (!this.initialized) { this.initialized = true; } -touch.left *= sensitivity; -touch.right *= sensitivity; -touch.up *= sensitivity; -touch.down *= sensitivity; - -this.x -= touch.left; -this.x += touch.right; -this.y -= touch.up; -this.y += touch.down; +this.x -= Math.round(touch.left * sensitivity); +this.x += Math.round(touch.right * sensitivity); +this.y -= Math.round(touch.up * sensitivity); +this.y += Math.round(touch.down * sensitivity); if (this.x < 0) { this.x = 0;