Skip to content
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

Scrolling unexpectedly slow #1238

Closed
Blendify opened this issue Sep 29, 2021 · 11 comments
Closed

Scrolling unexpectedly slow #1238

Blendify opened this issue Sep 29, 2021 · 11 comments
Labels
Bug A bug Needed: replication Bug replication is required

Comments

@Blendify
Copy link
Member

Problem

Scrolling becomes unpredictably slow when scrolling to the bottom of the page then back up.
I am unsure if this is a bug in Chrome or an issue without scrolling JS not working correctly with newer versions of chrome.

Reproducible Project

https://docs.blender.org/manual/en/latest/advanced/command_line/render.html

https://developer.blender.org/diffusion/BM/browse/trunk/blender_docs/manual/advanced/command_line/render.rst

Error Logs/Results

  • None

Expected Results

Scrolling should be at the same speed throughout the webpage.

Environment Info

  • Python Version: 3.9
  • Sphinx Version: 4.1.1
  • RTD Theme Version: 1.0.0
  • Chrome Version: 94.0.4606.61
  • OS: Ubunut 21.04
@Blendify Blendify added Bug A bug Needed: replication Bug replication is required labels Sep 29, 2021
@Blendify
Copy link
Member Author

While debugging, I found that the issue goes away when removing position: fixed from .wy-nav-side

@astrojuanlu
Copy link
Contributor

Can't reproduce :/ (Chromium, latest Linux Mint)

@nienn
Copy link
Contributor

nienn commented Sep 30, 2021

I can reproduce it in Chrome. It happens when the function onScroll from theme.js is triggered by having both the content and the .wy-side-scroll scroll.

This function was last altered 6 years ago so I'm not sure why this started happening now. Also in Firefox works fine. This happens only on Chrome with any project that has both scrolls.

Bellow you can see the problem when the function is trying to set the scroll on the sidebar from the onScroll event in the window:

Slow Scroll


This seems to be a new Chrome problem but can't find other references to it.
I was able to replicate it with this very basic test: https://codepen.io/nienn/pen/ZEyPpGR

@pzhlkj6612
Copy link

Hi there!

This seems to be a new Chrome problem but can't find other references to it.

Yes, it is. Please see 1252415 - Catastrophic issue on chrome 94 with scrollbars - chromium.

On Ubuntu 20.04.2, I've downloaded Chromium dev 95.0.4638.17 and 96.0.4651.0 (found on https://chromium.cypress.io/linux/ ) and tried to visit https://docs.readthedocs.io/en/stable/tutorial/ (revision: f0da2a47) . On version 95, the scrolling speed is slow; on version 96, the speed is normal.

As [email protected] said in comment 15:

The fix for this issue (crrev.com/923451) has been merged to the Chrome 94 release branch. Users will get the fix with the next stable channel refresh.

I guess this issue will be solved in Chrome 94 within a few days.

@nienn
Copy link
Contributor

nienn commented Sep 30, 2021

Hi @pzhlkj6612 thank you for referencing the Chromium issue and fix 👍 This helps a lot!
Hopefully it will get fixed in few days.

@madjxatw
Copy link

madjxatw commented Oct 1, 2021

I suddenly encountered this issue several days ago (after upgrading MS Edge), thanks for clarifying it is a Chrome issue.

@Blendify
Copy link
Member Author

Blendify commented Oct 2, 2021

Thank you @pzhlkj6612 for pointing to the Chrome bug report. I figured it was such a bug but like Ana I couldn't find reference to it.

Due to this not being a bug in the theme, this issue can be closed.

@Blendify Blendify closed this as completed Oct 2, 2021
@pzhlkj6612
Copy link

Hi everyone, now I'm using Windows 10 Pro 2004 (10.0.19041.867). Since I updated Microsoft Edge from 94.0.992.31 to 94.0.992.38 and Google Chrome from 94.0.4606.61 (mentioned by OP) to 94.0.4606.71, I can scroll the page normally.

@madjxatw
Copy link

madjxatw commented Oct 3, 2021

MS Edge version 95.0.1020.9 beta on Linux still has the issue.

@pzhlkj6612
Copy link

MS Edge version 95.0.1020.9 beta on Linux still has the issue.

MS Edge beta 95.0.1020.9 was released on September 28, while stable 94.0.992.38 (fixed) was released on October 1. I guess the fix has not been applied to the beta channel at that time.

@madjxatw
Copy link

madjxatw commented Oct 3, 2021

MS Edge version 95.0.1020.9 beta on Linux still has the issue.

MS Edge beta 95.0.1020.9 was released on September 28, while stable 94.0.992.38 (fixed) was released on October 1. I guess the fix has not been applied to the beta channel at that time.

Got it, thanks for sharing this info!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug Needed: replication Bug replication is required
Projects
None yet
Development

No branches or pull requests

5 participants