1.0.0 • Published 7 years ago

strict-click v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

strict-click

Handle click events iff the mousedown and mouseup targets match.

In some cases this is important, in others you are happy to ignore this module :)

Usage

const strictClick = require('strict-click')

strictClick(element, event => {
  // ...
})

Installation

$ npm install strict-click

API

strictClick(element, event => {})

License

MIT