1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-08 23:25:51 +01:00
verdaccio/node_modules/onclick
2014-09-14 18:28:17 +04: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
package.json 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

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