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 :)
const strictClick = require('strict-click')
strictClick(element, event => {
// ...
})
$ npm install strict-click
MIT