aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugin/leap/leap.js
diff options
context:
space:
mode:
authorYves Delley2014-09-12 22:49:13 +0200
committerYves Delley2014-09-12 22:49:13 +0200
commit9bc5b81292619ef06e9a582a7607b7e0601d7c17 (patch)
treecc4220eacd9e47cb42cdd237a4fa27038103294c /plugin/leap/leap.js
parent2bc36f2dfe04746d5a10c48531b38c64415d43aa (diff)
parent80c375fae85d5b1edc2656641e03942739daa28b (diff)
merged dev branch
Diffstat (limited to 'plugin/leap/leap.js')
-rw-r--r--plugin/leap/leap.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugin/leap/leap.js b/plugin/leap/leap.js
index 9d5271a..48084ff 100644
--- a/plugin/leap/leap.js
+++ b/plugin/leap/leap.js
@@ -76,8 +76,10 @@ var b=right.criteria;if(a!==b){if(a>b||a===void 0)return 1;if(a<b||b===void 0)re
pointer.style.borderRadius = size - 5 + 'px';
pointer.style.visibility = 'visible';
+ tipPosition = frame.fingers[0].tipPosition;
+
if( config.autoCenter ) {
- tipPosition = frame.fingers[0].tipPosition;
+
// Check whether the finger has entered the z range of the Leap Motion. Used for the autoCenter option.
if( !entered ) {
@@ -144,7 +146,7 @@ var b=right.criteria;if(a!==b){if(a>b||a===void 0)return 1;if(a<b||b===void 0)re
// Two hand gestures
else if( frame.hands.length === 2 ) {
// Upward two hand swipe gesture
- if( gesture.direction[1] > 0 && gesture.type === 'swipe' ) {
+ if( gesture.type === 'swipe' && gesture.direction[1] > 0 ) {
Reveal.toggleOverview();
}