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

Events trigger duplicated callbacks #32

Closed
marcelaraujo opened this issue Oct 31, 2012 · 6 comments
Closed

Events trigger duplicated callbacks #32

marcelaraujo opened this issue Oct 31, 2012 · 6 comments
Milestone

Comments

@marcelaraujo
Copy link

I've testing LungoJS and I found an issue on Android 4.X.

In the init method of Lungo.Boot.Events, I put this code

document.addEventListener('touchstart', function(e){
e.preventDefault();
console.log('tap');
}, false);

and the response was just one callback call but if I use the QuoJS, the callback is called twice.

lng.dom('body').tap(function(){
console.log('tap');
});

@marcelaraujo
Copy link
Author

If I try this, the same error occurs.

lng.dom(document).on('tap','body', function(){
console.log('tap');
});

@soyjavi
Copy link
Owner

soyjavi commented Oct 31, 2012

You must use touch ... tap is a touchstart event with 300ms delay :)

2012/10/31 Marcel Araujo notifications@github.com

If I try this, the same error occurs.

lng.dom(document).on('tap','body', function(){
console.log('tap');
});


Reply to this email directly or view it on GitHubhttps://github.com//issues/32#issuecomment-9943461.

@soyjavi
Copy link
Owner

soyjavi commented Jan 27, 2013

Fixed in 2.3 version :)

@soyjavi soyjavi closed this as completed Jan 27, 2013
@marcelaraujo
Copy link
Author

Tks

@jakemcallister
Copy link

I don't think this is fixed it still firing callbacks twice

@bsodmike
Copy link

Same here, on swipeDown... any thoughts?

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

4 participants