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

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