npm.io
0.2.0 • Published 11 years ago

mallet

Licence
MIT
Version
0.2.0
Deps
1
Vulns
6
Weekly
0

Mallet

A JavaScript library for managing touch and mouse interactions. It is basically Hammer.js modified to add basic support for IE8.

Installation

npm install mallet

Usage

var Mallet = require('mallet');

new Mallet(someDOMNode).on('tap', function () {
  console.log('That tickles!');
});

IE8 Support

For Mallet to work on IE8, make sure to include ES5 shim and sham.