Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

Fix iOS stuck in infinite loop bug #35

Merged
merged 1 commit into from
Feb 10, 2014
Merged

Fix iOS stuck in infinite loop bug #35

merged 1 commit into from
Feb 10, 2014

Conversation

alexguzman
Copy link
Contributor

A few iOS tests showed that the scrollTo function isn't exactly "pixel perfect" on iOS devices, and may produce an infinite loop (seems to be the cause of issue #34 as well).

This fix forces the animation loop to stop if it is calling the last iteration of animateScroll.

@alexguzman
Copy link
Contributor Author

This fix probably solves issue #31 as well but I haven't tested it.

@cferdinandi
Copy link
Owner

@alexguzman - You sir, are a genius! Simple, elegant fix to multiple issues. This does in fact also fix #31, too. Thanks so much!

cferdinandi pushed a commit that referenced this pull request Feb 10, 2014
Fix iOS stuck in infinite loop bug and Chrome browser zoom bug.
@cferdinandi cferdinandi merged commit 9882e1a into cferdinandi:master Feb 10, 2014
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