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
x/pkgsite: Can't scroll down #47450
Comments
I noticed it happens only when the window width is >= 1280 px. |
Does the problem happen in an incognito window? |
@cespare Yes it still does. |
I can't reproduce this in Chrome/92.0.4515.107 on Debian Linux. What flavor of Linux are you running? Are you able to update Chrome to see if that solves the issue? |
I just updated to the latest version of Chrome (92.0.4515.107) but I still have the same issue. I'm on Ubuntu 20.10 (Groovy). |
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.
Doesn't happen with JavaScript disabled.
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. |
@oandrew would you mind also trying in an incognito window? |
Change https://golang.org/cl/338589 mentions this issue: |
Let's try CL 338589 as a potential fix next after our next deploy on Monday. |
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 <jamal@golang.org> Run-TryBot: Jamal Carvalho <jamal@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Julie Qiu <julie@golang.org>
Still running into this issue. macOS + Chrome M92. Single stepped to the following code:
|
Change https://golang.org/cl/339393 mentions this issue: |
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. |
same bug for me, but only in Mac Pro (15-inch, 2019) |
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 <jamal@golang.org> Run-TryBot: Jamal Carvalho <jamal@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Julie Qiu <julie@golang.org>
Without consistent support for scrollIntoView across all browsers I think the solution for is to leave it disabled. I haven't seen any issues around the current behavior without scrollIntoView so I'll close this issue. |
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
Screenshot
What did you do?
Nothing?!
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: