Skip to content

juliangruber/strict-click

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Handle click events iff mouse{up,down} targets match

Resources

Stars

Watchers

Forks

Packages

No packages published