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

Fix #466 - make onTouchEnd click async #533

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

michaelabuckley
Copy link

Certain dom events (e.g. location change, ajax completion) seem to trigger touchend synchronously. When fastclick then generates the synthetic click, it arrives mid-stack and breaks some assumptions in angular (i.e. click events can't arrive during $digest). This PR changes wraps the sendClick() call with window.setTimeout to make sure it gets a clean stack.

@zivkaziv
Copy link

zivkaziv commented Apr 3, 2019

Is it going to merge someday?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants