Created
October 20, 2012 20:39
-
-
Save cfjedimaster/3924728 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.addEventListener("mousedown", handleClick, false); | |
window.addEventListener("contextmenu", function(e) { e.preventDefault(); }, false); | |
function handleClick(e) { | |
e.preventDefault(); | |
if(e.button === 0) Reveal.next(); | |
if(e.button === 2) Reveal.prev(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was looking for this!
However, for me it interferes with both links and zooming in via Ctrl-Click.