Skip to content

Plugins

jtangelder edited this page Feb 27, 2013 · 8 revisions

Enable multitouch gestures on desktop browsers by loading this plugin. Make sure you load it right after the hammer.js include scripttag, and call Hammer.plugins.fakeMultitouch();

Show touches. This is useful for desktop browsers with the fakemultitouch plugin. It makes use of the css property pointer-events, so it wont work on old IE versions.

<!--[if !IE]> -->
<script>
    Hammer.plugins.showTouches();
</script>
<!-- <![endif]-->

jQuery plugin, also available as in a dist version. It makes Hammer trigger jQuery events, so you can use all the jQuery magic on the gestures, including event delegation.

Angular plugin by @monospaced. Within an Angular.js application, allows you to specify custom behaviour on Hammer.js touch events. https://github.com/monospaced/angular-hammer

AMD loading

Hammer supports AMD loading by default. http://requirejs.org/docs/whyamd.html

Clone this wiki locally