Skip to content

vs-repeat scrolls all the way to the bottom on Chrome 56.0.2924.87 #156

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

Closed
rognstad opened this issue Feb 10, 2017 · 3 comments
Closed

vs-repeat scrolls all the way to the bottom on Chrome 56.0.2924.87 #156

rognstad opened this issue Feb 10, 2017 · 3 comments

Comments

@rognstad
Copy link

Hi,

Chrome 56.0.2924.87 is now the stable version and is getting pushed to people.

I'm using vs-repeat to show a list of items in a fixed-height/scroll-y element. As of Chrome 56.0.2924.87, when a user scrolls the list beyond the excess value, the list continues scroll until it reaches the bottom or the user tries to scroll up.

Here's a plunk illustrating the issue: http://run.plnkr.co/plunks/iu0A9R/

This happens on both Mac and Windows with that version of Chrome. I can't replicate it in any other browser.

I'd appreciate any suggestions you have in terms of avoiding this behavior.

Thanks!

@rognstad
Copy link
Author

Actually, it looks like this is because of scroll anchoring, which was added as an experiment in Chrome 51 and became default in 56. Adding "overflow-anchor: none;" to the parent works.

See: angular-ui/ui-scroll#138 (comment)

You might consider adding that property dynamically when vs-scroll-parent is used.

@Smarello
Copy link

Smarello commented Mar 8, 2017

Thanks for sharing, I had the same problem!

@Shemesh
Copy link

Shemesh commented Mar 26, 2017

you can use css to overcome this issue:

[vs-repeat] {
  overflow-anchor: none;
}

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

No branches or pull requests

3 participants