Update: CC - Touch Move (c55930et90.js) 1 bytes modified

beta.r3js.org
-=yb4f310 2017-11-18 14:11:53 +01:00
parent fa9b44dc7f
commit f15d88b821
1 changed files with 3 additions and 3 deletions

View File

@ -7,11 +7,11 @@ if (!this.initialized) {
this.x = window.innerWidth / 2; this.x = window.innerWidth / 2;
this.y = window.innerHeight / 2; this.y = window.innerHeight / 2;
var sensitivity = 0.1;
this.initialized = true; this.initialized = true;
} }
var sensitivity = 0.1;
this.x -= Math.round(touch.left * sensitivity); this.x -= Math.round(touch.left * sensitivity);
this.x += Math.round(touch.right * sensitivity); this.x += Math.round(touch.right * sensitivity);
this.y -= Math.round(touch.up * sensitivity); this.y -= Math.round(touch.up * sensitivity);