Skip to content

Instantly share code, notes, and snippets.

@thure
Last active August 29, 2015 14:04
Show Gist options
  • Save thure/cdfcf5bf4930839a467e to your computer and use it in GitHub Desktop.
Save thure/cdfcf5bf4930839a467e to your computer and use it in GitHub Desktop.
var touchViewport = new Hammer(document.documentElement);
touchViewport.on('swipeleft', navRight);
touchViewport.on('swiperight', navLeft);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment