Skip to content

Chrome 56 automatically scrolling to bottom of page #138

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
mvanderheijden opened this issue Feb 6, 2017 · 10 comments
Closed

Chrome 56 automatically scrolling to bottom of page #138

mvanderheijden opened this issue Feb 6, 2017 · 10 comments

Comments

@mvanderheijden
Copy link

Hi,
After updating my Chrome browser I see some weird behavior when scrolling.
The scroll bar is automatically going down to the bottom of the page. I have seen this happening in my own code as well as in a example. https://rawgit.com/angular-ui/ui-scroll/master/demo/scopeDatasource/scopeDatasource.html

See the GIF below. (When the page turns white it is no longer me that is scrolling.)

Seen in Chrome 56.0.2924.87 and 56.0.2924.76.
No problems in FF and IE.
In the release notes of chrome I have found that they have added CSS position: sticky;. This may or may not cause this behavior?
https://developers.google.com/web/updates/2017/01/nic56

chrome 56 bug

@radubl
Copy link

radubl commented Feb 10, 2017

Happens on version 56, but not on 54, from what we've experienced.

@dhilt
Copy link
Member

dhilt commented Feb 10, 2017

This is because of Scroll Anchoring. This feature was introduced as experimental in Chrome 51:

and set as default in Chrome 56:

Also there's a perfect-scrollbar plugin issue, which describes the problem and gives a solution:

So the workaround is to set "overflow-anchor: none;" to the parent element, e.g. ui-scroll-viewport if you have it in your template.

I think we should add this style-property to the ui-scroll-viewport element programmatically and update a documentation for case when the ui-scroll-viewport directive is not being used... This will be added to v1.6.1 release.

Thanks for the report!

@mvanderheijden
Copy link
Author

@dhilt, thank you for pointing out this workaround. It is working!

@dhilt
Copy link
Member

dhilt commented Feb 15, 2017

The fix is in 'master' branch. Waiting for v1.6.1 release...

@vaibhavi3t
Copy link

I am using chrome Version 69.0.3497.100 (Official Build) (64-bit)
I have the same issue.
Each time page loads, the browser scrolls the page to bottom.
Note: The content of the page is loaded by ajax apart header section.

@dhilt
Copy link
Member

dhilt commented Oct 12, 2018

@vaibhavi3t Can you make sure that you have overflow-anchor: none; on the viewport element? Though I'm not sure if it's still actual... anyway we need repro of the problem, because on my 69.0.3497.100 (Official Build) (64-bit) I can't reproduce it. Maybe your problem does not relate to this issue. The best option is to create plunker/stackblitz/etc, specify the OS version and any other details that could be helpful, and open new github issue.

@decibel
Copy link

decibel commented Feb 18, 2019

This just started happening to me. I have no idea what overflow-anchor or the viewport element are. How can I fix this?

Version 72.0.3626.109 (Official Build) (64-bit) (OS X)

@shijiebei2009
Copy link

shijiebei2009 commented May 7, 2019

This just started happening to me. I have no idea what overflow-anchor or the viewport element are. How can I fix this?

Version 72.0.3626.109 (Official Build) (64-bit) (OS X)

So do I, my MBP also have this problem with chrome (74.0.3729.131 64-bit OS X)

@BaconCatBug
Copy link

Happening to me now Version 76.0.3809.100

@dhilt
Copy link
Member

dhilt commented Aug 18, 2019

Definitely can't reproduce it on my macOS Mojave and macOS Sierra with Chrome 76. Is it really happens with, for example, this demo? Or this stackblitz sample?

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

7 participants