aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorRory Hardy <rory.cronin-hardy@cerner.com>2013-08-07 22:07:02 -0500
committerRory Hardy <rory.cronin-hardy@cerner.com>2013-08-07 22:07:02 -0500
commit1e1919274c4c9e3baa0fa2c3424b3aedd470ed34 (patch)
tree7424872ddcde23d56c8496e5864502f795904ef8 /plugin
parentbd543e5ceec87927ea8be959bddcf8bc3c4a4b7d (diff)
downloadfreenode-live-2017-presentation-1e1919274c4c9e3baa0fa2c3424b3aedd470ed34.tar
freenode-live-2017-presentation-1e1919274c4c9e3baa0fa2c3424b3aedd470ed34.tar.gz
Removed redundant code
modified: plugin/leap/leap.js
Diffstat (limited to 'plugin')
-rw-r--r--plugin/leap/leap.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/plugin/leap/leap.js b/plugin/leap/leap.js
index 8ec51ec..b2f91de 100644
--- a/plugin/leap/leap.js
+++ b/plugin/leap/leap.js
@@ -34,7 +34,7 @@ var b=right.criteria;if(a!==b){if(a>b||a===void 0)return 1;if(a<b||b===void 0)re
naturalSwipe : true, // Swipe as if it were a touch screen.
pointerColor : '#00aaff', // Default color of the pointer.
pointerOpacity : 0.7, // Default opacity of the pointer.
- pointerSize : 15, // Default height/width of the pointer.
+ pointerSize : 15, // Default minimum height/width of the pointer.
pointerTolerance : 120 // Bigger = slower pointer.
},
now,
@@ -125,10 +125,8 @@ var b=right.criteria;if(a!==b){if(a>b||a===void 0)return 1;if(a<b||b===void 0)re
else {
config.naturalSwipe ? Reveal.right() : Reveal.left();
}
-
- lastGesture = now;
- // Up/down swipe gestures
}
+ // Up/down swipe gestures
else {
if( y > 0 ) {
config.naturalSwipe ? Reveal.down() : Reveal.up();
@@ -136,9 +134,9 @@ var b=right.criteria;if(a!==b){if(a>b||a===void 0)return 1;if(a<b||b===void 0)re
else {
config.naturalSwipe ? Reveal.up() : Reveal.down();
}
-
- lastGesture = now;
}
+
+ lastGesture = now;
}
}
// Two hand gestures