Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

No synthetic clicks on elements deep in the DOM hierarchy #21

Closed
mattcg opened this issue Oct 26, 2012 · 1 comment
Closed

No synthetic clicks on elements deep in the DOM hierarchy #21

mattcg opened this issue Oct 26, 2012 · 1 comment
Assignees

Comments

@mattcg
Copy link
Contributor

mattcg commented Oct 26, 2012

From JB:

I'm just getting the overall framework setup and starting to look at the fastclick library you maintain but running into problems when testing on Android browser v4.0.3

Basically it seems to be only triggering the synthetic click event on links in the top level navigation. Any links found inside the second level (several nested UL's) just trigger the native click (after the 300ms delay).

The way I have found to resolve this when instantiating Fastclick to pass just 'document' as the layer argument, instead of 'document.body'. Or, if I create an empty event listener on document ontouchstart when my app initialises, that also fixes it (without having to use document.body when instantiating Fastclick.

@ghost ghost assigned mattcg Oct 26, 2012
@mattcg
Copy link
Contributor Author

mattcg commented Nov 29, 2012

Unreproducible and no new reports received.

@mattcg mattcg closed this as completed Nov 29, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant