Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can this be used reliably on desktop as well? #3

Closed
0xgeert opened this issue Feb 24, 2015 · 1 comment
Closed

Can this be used reliably on desktop as well? #3

0xgeert opened this issue Feb 24, 2015 · 1 comment

Comments

@0xgeert
Copy link

0xgeert commented Feb 24, 2015

It would be great to have a unified solution for mobile (touch) and desktop (click). Can this be used?

@BR0kEN-
Copy link
Owner

BR0kEN- commented Mar 2, 2015

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.

@BR0kEN- BR0kEN- closed this as completed Mar 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants