From a06c84e42a0a90dafea063abb6a40419610100a1 Mon Sep 17 00:00:00 2001 From: Rory Hardy Date: Mon, 5 Aug 2013 12:43:07 -0500 Subject: [PATCH] Removed timing code. When used correctly, the 1/2 second delay is uncessary and may yield undesireable results. modified: plugin/leap/leap.js --- plugin/leap/leap.js | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/plugin/leap/leap.js b/plugin/leap/leap.js index ad2e3db..9737529 100644 --- a/plugin/leap/leap.js +++ b/plugin/leap/leap.js @@ -22,21 +22,14 @@ var b=right.criteria;if(a!==b){if(a>b||a===void 0)return 1;if(a 500 && frame.gestures.length > 0 ) { + if ( frame.gestures.length > 0 ) { var gesture = frame.gestures[0], x = gesture.direction[0], y = gesture.direction[1]; @@ -50,8 +43,6 @@ var b=right.criteria;if(a!==b){if(a>b||a===void 0)return 1;if(a 0 ) { config.naturalSwipe ? Reveal.down() : Reveal.up(); @@ -59,14 +50,10 @@ var b=right.criteria;if(a!==b){if(a>b||a===void 0)return 1;if(a 0 ) { Reveal.toggleOverview(); } - - lastGesture = now; } } } -- 2.26.2