strict-click
v1.0.0
Published
Handle click events iff mouse{up,down} targets match
Downloads
2
Readme
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