Hammer.js support for AngularJS
Clone or download
Pull request Compare This branch is 48 commits ahead, 16 commits behind randallb:master.
Latest commit 0428812 Sep 21, 2014
Permalink
Failed to load latest commit information.
README.md make a bower component May 2, 2013
angular-hammer.js bump version Sep 21, 2014
bower.json bump version Sep 21, 2014
index.html final hammer v1 release Sep 18, 2014

README.md

Angular Hammer v2

Within an AngularJS application, allows you to specify custom behaviour on Hammer.js touch events.

See it in action.

Usage

as attribute

hm-tap="{expression}"

as class

class="hm-tap: {expression};"

change the default settings for the instance by adding a second attribute or class with options

hm-options="{drag: false, transform: false}"

class="hm-options: {drag: false, transform: false};"

Install

bower install monospaced/angular-hammer

Include the angular-hammer.js script provided by this component in your app, and add hmTouchEvents to your app’s dependencies.

Requires Hammer.js, tested with v1.0.5.

Demo

monospaced.github.io/angular-hammer