verdaccio/node_modules/onclick
Alex Kocharin 4592ec3657 bundle all the deps 2014-11-25 03:08:06 +03:00
..
dist importing all bundled deps to git 2014-09-14 18:28:17 +04:00
examples importing all bundled deps to git 2014-09-14 18:28:17 +04:00
src importing all bundled deps to git 2014-09-14 18:28:17 +04:00
test importing all bundled deps to git 2014-09-14 18:28:17 +04:00
.npmignore importing all bundled deps to git 2014-09-14 18:28:17 +04:00
.travis.yml importing all bundled deps to git 2014-09-14 18:28:17 +04:00
Gruntfile.js importing all bundled deps to git 2014-09-14 18:28:17 +04:00
README.md importing all bundled deps to git 2014-09-14 18:28:17 +04:00
package.json bundle all the deps 2014-11-25 03:08:06 +03:00

README.md

onClick.js Build Status

A click controller for mouse & touch.

  • Prevents 300ms delay on touch
  • Touch interactions like scrolling work as expected
  • Handles devices that have both touch and mouse
  • Delegates events for efficiency

Installation

npm install onclick

A jQuery-like selector library is required:

  • jQuery 1.4.3+
  • Zepto

Usage

onClick({
    '#element': function(e) {
        alert("I was clicked!");
    }
});

onClick('.myclass', function() {

});

Check out a live example.

Development

To Build: grunt build

To Develop: grunt watch

To Test: npm test