Skip to content

Handle failures when setting scrollTop after prepend so view does not jump #206

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

Merged
merged 1 commit into from
May 24, 2018

Conversation

conraddamon
Copy link

When handling a scroll event, see if we recently set scrollTop and check whether it worked (by seeing if the current is closer to what we set it to, or the value before that). If it failed, set a flag so we don't try to keep prepending items.

The failure appears to happen primarily on Mac Chrome, and also on Safari.

@dhilt dhilt changed the base branch from master to scroll-on-mac May 24, 2018 00:53
@dhilt dhilt merged commit 188d610 into angular-ui:scroll-on-mac May 24, 2018
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.

2 participants