tap-listener demo

This library's purpose is to distinguish on touch devices between taps and non-taps (e.g. scrolls and drags) in situations where the "click" event will not work.

If you find anything wrong in this demo, please file a bugs back in the repo.

Click this button to initiate the tap listener:

Every time you tap (or click), the number at the bottom of the screen should increment. When you touch-scroll or -drag, it should not.

Also, try clicking this button to remove the tap listener:

And here is a lot of space to try scrolling in. (Scrolls should not cause tap events.)

tap count: 0