remotes plugin more natural bindings: tap — next, zoom-out — activate overview, zoom...
authorIvan Kuchin <tadump+git@gmail.com>
Sat, 4 May 2013 00:27:55 +0000 (02:27 +0200)
committerIvan Kuchin <tadump+git@gmail.com>
Sat, 4 May 2013 00:27:55 +0000 (02:27 +0200)
plugin/remotes/remotes.js

index febdf87ef3728568a0c9dcdd4d89c03dde693c85..694e9c0465d11091872dbe8cfb9b020be44d2a33 100644 (file)
                 .on("swipe-right", function(e){ Reveal.left(); })
                 .on("swipe-up", function(e){ Reveal.down(); })
                 .on("swipe-down", function(e){ Reveal.up(); })
-                .on("tap", function(e){ 
-                    Reveal.toggleOverview(); 
-                });
+                .on("tap", function(e){ Reveal.next(); })
+                .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');