Make item flick easier to trigger.
This commit is contained in:
1 parent
7d09b4790b
commit
c45f9e2ba7
1 file changed
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user