Browse Source

remotes plugin more natural bindings: tap — next, zoom-out — activate overview, zoom-in — deactivate overview

embed
Ivan Kuchin 12 years ago
parent
commit
352ec7e9ad
  1. 7
      plugin/remotes/remotes.js

7
plugin/remotes/remotes.js

@ -28,9 +28,10 @@
.on("swipe-right", function(e){ Reveal.left(); }) .on("swipe-right", function(e){ Reveal.left(); })
.on("swipe-up", function(e){ Reveal.down(); }) .on("swipe-up", function(e){ Reveal.down(); })
.on("swipe-down", function(e){ Reveal.up(); }) .on("swipe-down", function(e){ Reveal.up(); })
.on("tap", function(e){ .on("tap", function(e){ Reveal.next(); })
Reveal.toggleOverview(); .on("zoom-out", function(e){ Reveal.toggleOverview(true); })
}); .on("zoom-in", function(e){ Reveal.toggleOverview(false); })
;
} ); } );
head.js('https://raw.github.com/Remotes/Remotes/master/dist/remotes.ne.min.js'); head.js('https://raw.github.com/Remotes/Remotes/master/dist/remotes.ne.min.js');

Loading…
Cancel
Save