From 71f1780b50d1a1555aa00a84eeb77bc026249cca Mon Sep 17 00:00:00 2001 From: Gijs Koot Date: Wed, 5 Mar 2014 15:20:30 +0100 Subject: [PATCH] fixed two minor bugs, a twohanded gesture may not have a direction, and if autoCenter is of, the tipPosition was in the wrong scope --- plugin/leap/leap.js | 6 ++++-- 1 file 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(ab||a===void 0)return 1;if(a 0 && gesture.type === 'swipe' ) { + if( gesture.type === 'swipe' && gesture.direction[1] > 0 ) { Reveal.toggleOverview(); }