Make item flick easier to trigger.

gh-pages
riperiperi 2019-06-12 19:30:23 +01:00
parent 7d09b4790b
commit c45f9e2ba7
1 changed files with 2 additions and 2 deletions

View File

@ -107,8 +107,8 @@ window.controlMobile = function() {
if (dPadTouch != null) {
//set direction based on flick direction or position
var vel = dPadTouch.touch.lasty - dPadTouch.touch.y;
if (vel > 5/targH) itemDir = -1; //flicked down
if (vel < -5/targH) itemDir = 1; //flicked up
if (vel > 2/targH) itemDir = -1; //flicked down
if (vel < -2/targH) itemDir = 1; //flicked up
}
item = false;
}