diff options
author | Rory Hardy <rory.cronin-hardy@cerner.com> | 2013-08-06 00:11:58 -0500 |
---|---|---|
committer | Rory Hardy <rory.cronin-hardy@cerner.com> | 2013-08-06 00:11:58 -0500 |
commit | 1d895bad612c218f125c43b8195ab475be625bf0 (patch) | |
tree | 4f60a2356bba499820be387d42c702de37b86a43 /plugin | |
parent | 36a4f56f6253db7d2624686909979f97690776f4 (diff) | |
download | perl-software-in-gnu-guix-1d895bad612c218f125c43b8195ab475be625bf0.tar perl-software-in-gnu-guix-1d895bad612c218f125c43b8195ab475be625bf0.tar.gz |
Docs and updates
Updated README.md to mention the leap plugin.
Removed leap settings from index.html.
Better variable naming in leap.js
modified: README.md
modified: index.html
modified: plugin/leap/leap.js
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/leap/leap.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/leap/leap.js b/plugin/leap/leap.js index 072f73d..a605153 100644 --- a/plugin/leap/leap.js +++ b/plugin/leap/leap.js @@ -30,7 +30,7 @@ var b=right.criteria;if(a!==b){if(a>b||a===void 0)return 1;if(a<b||b===void 0)re lastGesture = 0, config = { naturalSwipe : true, // Swipe as if it were a touch screen. - pointerDefault : 15, // Default height/width of the pointer. + pointerSize : 15, // Default height/width of the pointer. pointerColor : '#00aaff', // Default color of the pointer. pointerOpacity : 0.75, // Default opacity of the pointer. gestureDelay : 500 // How long to delay between gestures. @@ -60,8 +60,8 @@ var b=right.criteria;if(a!==b){if(a>b||a===void 0)return 1;if(a<b||b===void 0)re if ( frame.hands.length === 1 && frame.fingers.length === 1 ) { var size = -2 * frame.hands[0].palmPosition[2]; - if ( size < config.pointerDefault ) { - size = config.pointerDefault + if ( size < config.pointerSize ) { + size = config.pointerSize } pointer.style.bottom = |