1.2.2 • Published 12 months ago

clickdown v1.2.2

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

clickdown

npmjs - demo

Speeds up clicks by combining the speed of pointerdown and the features of click in a single "clickdown" event.

It attaches the onclickdown function to Element and HTMLElement prototypes, which means you can use it with getElementById, querySelector, and others.

Like this:

import 'clickdown'

document.getElementById('my-input').onclickdown(function (event, target) {
  console.log(event)   // PointerEvent
  console.log(target)  // <input type="..." />
})
1.2.2

12 months ago

1.1.2

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago