-
Notifications
You must be signed in to change notification settings - Fork 783
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
'tap' events are firing on 'doubletap' #155
Comments
That's also the behaviour of DOM I could add a interact(target)
.on('tap', function (event) {
if (event.double) { return; }
// code for first tap
})
.on('doubletap', function (event) {
// code for doubletap
}); |
Thanks for the quick response. You're right, that's how the DOM click and dblclick work. As you suggested a 'double' property on the tap event would certainly be useful. If you could add it, that would be great. |
https://rawgit.com/taye/interact.js/master/interact.js This fix should be available in the next release. |
Hi there,
I'm having a problem with doubletap events. My interactable is listening to both tap and doubletap events but when a doubletap occurs the tap event listener will be called twice and the doubletap event listener once. What I was expecting is that only the doubletap listener will be called. I haven't found a way to achieve that, although I'm might missing something obvious.
The text was updated successfully, but these errors were encountered: