Removed redundant code
modified: plugin/leap/leap.js
This commit is contained in:
		| @@ -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. |         naturalSwipe     : true,      // Swipe as if it were a touch screen. | ||||||
|         pointerColor     : '#00aaff', // Default color of the pointer. |         pointerColor     : '#00aaff', // Default color of the pointer. | ||||||
|         pointerOpacity   : 0.7,       // Default opacity 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. |         pointerTolerance : 120        // Bigger = slower pointer. | ||||||
|       }, |       }, | ||||||
|       now, |       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 { |             else { | ||||||
|               config.naturalSwipe ? Reveal.right() : Reveal.left(); |               config.naturalSwipe ? Reveal.right() : Reveal.left(); | ||||||
|             } |             } | ||||||
|  |  | ||||||
|             lastGesture = now; |  | ||||||
|           // Up/down swipe gestures |  | ||||||
|           } |           } | ||||||
|  |           // Up/down swipe gestures | ||||||
|           else { |           else { | ||||||
|             if( y > 0 ) { |             if( y > 0 ) { | ||||||
|               config.naturalSwipe ? Reveal.down() : Reveal.up(); |               config.naturalSwipe ? Reveal.down() : Reveal.up(); | ||||||
| @@ -136,11 +134,11 @@ var b=right.criteria;if(a!==b){if(a>b||a===void 0)return 1;if(a<b||b===void 0)re | |||||||
|             else { |             else { | ||||||
|               config.naturalSwipe ? Reveal.up() : Reveal.down(); |               config.naturalSwipe ? Reveal.up() : Reveal.down(); | ||||||
|             } |             } | ||||||
|  |           } | ||||||
|  |  | ||||||
|           lastGesture = now; |           lastGesture = now; | ||||||
|         } |         } | ||||||
|       } |       } | ||||||
|       } |  | ||||||
|       // Two hand gestures |       // Two hand gestures | ||||||
|       else if( frame.hands.length === 2 ) { |       else if( frame.hands.length === 2 ) { | ||||||
|         // Upward two hand swipe gesture |         // Upward two hand swipe gesture | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user