one-two-tap.js

Message: Nothing happened yet.
Window Width:
Threshold: 900px
Kitty

The one-two-tap allows you to apply a callback for tapping or clicking an element based on screen width. If the screen width is above the threshold, the callback function will fire for both single and double tap/click. If the screen width is below or equal to the threshold, the callback function will only fire when the element is double tapped/clicked. Additionally, a oneTapCallback can be defined for the screen width below the threshold.