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

Extending period in which click events are ignored #2431

Merged
merged 1 commit into from
Oct 30, 2014

Conversation

wassil
Copy link

@wassil wassil commented Oct 29, 2014

Tap plugin ignores click events that follow touch events in small timeframe to deal with iOS simulated click events.
According to apple documentation, these simulated clicks are fired 300ms after touch start/end happens.
Unfortunately, that is not always true, and the time is variable(probably with cpu load).
Ignore time frame was setup to 500ms, but once during testing click events were happening in ~600ms after touch events.

To make sure these problems no longer happen, 1000ms should provide large enough time frame.

@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@zpao
Copy link
Member

zpao commented Oct 30, 2014

Sounds fine.

zpao added a commit that referenced this pull request Oct 30, 2014
Extending period in which click events are ignored
@zpao zpao merged commit eb7f806 into facebook:master Oct 30, 2014
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

Successfully merging this pull request may close these issues.

4 participants