summaryrefslogtreecommitdiffhomepage
path: root/plugin/leap
diff options
context:
space:
mode:
authorHakim El Hattab2015-01-09 18:22:30 +0100
committerHakim El Hattab2015-01-09 18:22:30 +0100
commit20d858deb888fe0ec0ba92a919c8a0526ac52a2e (patch)
tree9a953291ea1716afae558100907c81a3ec745d03 /plugin/leap
parent57977e29239a1115ddfd673fc24f86080203f6d7 (diff)
parent3a8fc9b2742756be2274c8c74f77dbed84407d92 (diff)
Merge pull request #1093 from hakimel/dev
3.0.0
Diffstat (limited to 'plugin/leap')
-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();
}