What is the URL of the page with the issue?
Any page of the website.
What is your user agent?
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.40 Safari/537.36
What did you do?
What did you expect to see?
The page scrolling down normally.
What did you see instead?
It keeps scrolling back to the top. I can't scroll down.
I tried to clear the page data (cookies, storage, etc.) and hard reload the page but it didn't fix the issue.
The text was updated successfully, but these errors were encountered:
I can't reproduce in Chrome 92.0.4515.107 on Ubuntu 20.10 either. I have few more ideas if you have the time:
My best guess is that the code that handles scrolling nav items into view has a sneaky bug somewhere on pkgsite or in the actual Element.scrollIntoView() Web API.
I'm seeing the same issue on macOS 11.4 + Chrome 92.0.4515.107 .
No issues with Safari or Firefox.
No console errors.
External mouse/keyboard, but disconnecting them does not change anything. It happens when scrolling with keyboard (arrows or home/end) as well
It is happening even with
Also, as mentioned above, it happens only when browser window is >=1280px wide.
The scrollIntoViewIfNeeded API is non-standard and potentially causing scroll issues for some visitors in Chrome. The behavior of scrollIntoView is virtually identical with the options `behavior: 'smooth', block: 'nearest'`. For golang/go#47450 Change-Id: I8712461b1a2ff7666bf6e7ec20a690bf4c108378 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/338589 Trust: Jamal Carvalho <firstname.lastname@example.org> Run-TryBot: Jamal Carvalho <email@example.com> TryBot-Result: kokoro <firstname.lastname@example.org> Reviewed-by: Julie Qiu <email@example.com>
Still running into this issue. macOS + Chrome M92.
Single stepped to the following code:
Thanks for the additional context. I'm still unable to reproduce this behavior in Chrome/Safari/Firefox on MacOS or Chrome/Firefox on Ubuntu. We'll disable the feature while we're diagnosing the issue. Please add additional system information (OS, Processor, Input Devices, etc) if you're open to sharing.
Disabling scroll into view while we investigate a bug report. For golang/go#47450 Change-Id: Ia2de6419ddc1deca18a8dbcaa0d065773e6bec4c Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/339393 Trust: Jamal Carvalho <firstname.lastname@example.org> Run-TryBot: Jamal Carvalho <email@example.com> TryBot-Result: kokoro <firstname.lastname@example.org> Reviewed-by: Julie Qiu <email@example.com>