[issue24712] Docs page's sidebar vibrates on mouse wheel scroll on Chrome.
New submission from Biwin John: The sidebar on the documentation pages ex. https://docs.python.org/2/library/collections.html vibrates/flashes on mouse wheel scroll. The sidebar with class sphinxsidebar, works okay when scrolling with the scrollbar, Firefox but not with mouse wheel on Chrome. please consider fixing it. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue24712> _______________________________________
Carol Willing added the comment: Biwan John, thanks for the issue report. I can confirm that there is jitter due to scroll speed lag in Chrome for Python 2.7 docs. This behavior does not happen with Python 3.x docs. No issues with Firefox. I am using Mac OS X 10.10 with up-to-date Chrome and Firefox. I believe that this is likely a Chrome scroll issue and not a Python docs or Sphinx issue. I have triaged this as "needs patch" in case someone is aware of a workaround to resolve. If this is still open after a month, I would recommend closing the issue as a "third party" issue ---------- nosy: +willingc priority: normal -> low stage: -> needs patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue24712> _______________________________________
Changes by Serhiy Storchaka <storchaka@gmail.com>: ---------- nosy: +ezio.melotti _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue24712> _______________________________________
Changes by asal ada <asalada41@gmail.com>: ---------- components: +2to3 (2.x to 3.x conversion tool), Benchmarks, Build, Cross-Build, Demos and Tools, IO, Installation, Interpreter Core, Library (Lib), Tests, Unicode, Windows, XML, email nosy: +barry, haypo, paul.moore, r.david.murray, steve.dower, tim.golden, zach.ware _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue24712> _______________________________________
Changes by Steve Dower <steve.dower@microsoft.com>: ---------- components: -2to3 (2.x to 3.x conversion tool), Benchmarks, Build, Cross-Build, Demos and Tools, IO, Installation, Interpreter Core, Library (Lib), Tests, Unicode, Windows, XML, email nosy: -steve.dower _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue24712> _______________________________________
Biwin John added the comment: The problem exist with the Chrome on Ubuntu, Windows and OSX, but ony with the python docs for version 2.7. Docs for 2.6 use the same sidebar. But in 2.7 docs, the content of sidebar is positioned with the style added on scroll, style="float: left; margin-right: 0px; width: 202px; top: 13px;" The top value is calculated on scroll, the same code works with FireFox without any problem. So it might be the way chrome handles the change in values. And we must workaround with our code than waiting for Chrome to get fixed. Needs to be fixed as, 2.7 is the most used version, comes default with most distros and chrome is the most used browser (50.25% of all)[https://en.wikipedia.org/wiki/Usage_share_of_web_browsers] Recommendations: 1. Change the sidebar behavior to the 2.6 docs sidebar one.(default top value, users can scroll up to see the content) or. 2. Make the sidebar position:fixed and provide a inner scroll bar. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue24712> _______________________________________
Changes by Ned Deily <nad@acm.org>: ---------- nosy: +georg.brandl _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue24712> _______________________________________
Kartikaya Gupta added the comment: Please note that this issue will affect Firefox 46 and up as well; we have enabled asynchronous scrolling as of Firefox 46. Bugzilla bug for this issue: https://bugzilla.mozilla.org/show_bug.cgi?id=997269 Announcement for asynchronous scrolling: https://groups.google.com/d/msg/mozilla.dev.platform/X2BwGm348jI/Tl26C_1JBAA... Also, in Firefox 46 and up, if you open the browser's web console and scroll these documentation pages, you should see a warning about scroll-linked effects with pointers to additional info on why this is happening. ---------- nosy: +kats _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue24712> _______________________________________
Changes by R. David Murray <rdmurray@bitdance.com>: ---------- nosy: -r.david.murray _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue24712> _______________________________________
Mike Taylor added the comment: I can reproduce on Chrome and Firefox Nightly -- Carol, if I'd like to write a patch where would I do that? I see https://github.com/python/pythondotorg, but am not sure that's the right repo. Thanks! ---------- nosy: +Mike Taylor _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue24712> _______________________________________
Ezio Melotti added the comment: CSS: Doc/tools/pydoctheme/static/pydoctheme.css JS: Doc/tools/static/sidebar.js The repo is https://hg.python.org/cpython/, but there should be a github mirror too. See also the devguide for more info. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue24712> _______________________________________
Mike Taylor added the comment: Great, thanks Ezio! Will take a stab now. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue24712> _______________________________________
Mike Taylor added the comment: OK, so uh, somehow a few months escaped me before I could get to this. >_> (I've also just signed the Contributor Agreement with the PSF) ---------- keywords: +patch Added file: http://bugs.python.org/file42917/docs-sidebar.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue24712> _______________________________________
Mike Taylor added the comment: The bug for Chrome to ship support of position: sticky is here: https://bugs.chromium.org/p/chromium/issues/detail?id=231752 -- it's in active development. But this patch fixes the jerky sidebar in Firefox as well. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue24712> _______________________________________
karl added the comment: @ezio.melotti What is the next step for getting the patch accepted. ---------- nosy: +karlcow _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue24712> _______________________________________
Change by Julien Palard <julien+python@palard.fr>: ---------- pull_requests: +13095 stage: needs patch -> patch review _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue24712> _______________________________________
Stéphane Wirtel <stephane@wirtel.be> added the comment: New changeset 8ab24b2ebcf99f703f00297cb3a0c3ff857eecf8 by Stéphane Wirtel (Julien Palard) in branch '2.7': [2.7] bpo-24712: Doc: Make sidebar sticky using browser support. (GH-13179) https://github.com/python/cpython/commit/8ab24b2ebcf99f703f00297cb3a0c3ff857... ---------- nosy: +matrixise _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue24712> _______________________________________
Change by Stéphane Wirtel <stephane@wirtel.be>: ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue24712> _______________________________________
participants (13)
-
asal ada
-
Biwin John
-
Carol Willing
-
Ezio Melotti
-
Julien Palard
-
karl
-
Kartikaya Gupta
-
Mike Taylor
-
Ned Deily
-
R. David Murray
-
Serhiy Storchaka
-
Steve Dower
-
Stéphane Wirtel