Can this be used reliably on desktop as well?
0xgeert opened this issue · 1 comments
0xgeert commented
It would be great to have a unified solution for mobile (touch
) and desktop (click
). Can this be used?
BR0kEN- commented
You can attach handlers in this way and they will works fine on desktops and touch devices.
$('#element').on('tap', handler);
In last paragraph of usage section of the documentation you can read about that fact.
Also, in code of the library you can see that "mousedown" and "mouseup" events was binded.