docusaurus-openapi-docs icon indicating copy to clipboard operation
docusaurus-openapi-docs copied to clipboard

Scrollbars are not hidden in Firefox on Windows

Open skyfrk opened this issue 2 years ago • 9 comments

Describe the bug

In Firefox some scrollbars are rendered that probably should not be rendered (see screenshots below).

Screenshots

Firefox

image image image image

Chrome

image

Your Environment

  • Version used: v1.1.12
  • Environment name and version: Firefox 104.0.2 (64-bit)
  • Operating System and version (desktop or mobile): Windows 10

skyfrk avatar Sep 20 '22 14:09 skyfrk

I am not able to reproduce on same version of Firefox. Any chance your scroll bars are set to always be visible?

https://support.mozilla.org/en-US/questions/979836#:~:text=You%20can%20make%20the%20scroll,Scroll%20Bar%20%3E%20Choose%20%22Always%22

sserrata avatar Sep 20 '22 21:09 sserrata

I did not find any setting on my system (Windows, not MacOS like in the link you posted) that forces scrollbars to always appear.

Upgrading to the latest Firefox version (105.0) also did not change anything.

@FelixBurkhardAIT I think you were also able to reproduce this issue, correct? Maybe you can share your setup.

Edit:

https://connect.mozilla.org/t5/discussions/scrollbars-disappear-in-firefox-100/td-p/5433

I have the setting "Automatically hide scroll bars in Windows" enabled. Changing it doesn't affect the outcome though.

skyfrk avatar Sep 21 '22 10:09 skyfrk

Hi @skyfrk, I tested on a Mac so it would it appear to be OS-specific. Have you ruled out any possible accessibility setting in Windows?

(I'll try to spin up a Windows VM today to try to reproduce)

sserrata avatar Sep 21 '22 12:09 sserrata

The problem I experience is a bit different than described. Firefox shows scrollbars for scrollable elements that occlude parts of the content: While hovering the cursor over it: image When removing the cursor the scrollbar slowly fades away from this: image until the scrollbar is complete removed: image I am using Firefox 105.0 (64-bit) on Windows 11 Enterprise Build 22000.978

FelixBurkhardAIT avatar Sep 21 '22 14:09 FelixBurkhardAIT

Any updates to share? I am hoping to have time to reproduce this week.

sserrata avatar Oct 04 '22 20:10 sserrata

@sserrata I am still experiencing the same issues with the latest version of https://docusaurus-openapi.tryingpan.dev/petstore/place-order

image

OS:

Edition	Windows 10 Pro
Version	21H2
OS build	19044.2006

Firefox v105.0.2 (64-bit)

skyfrk avatar Oct 06 '22 10:10 skyfrk

Since it doesn't occur in Firefox running on a Mac, I strongly suspect it's a Windows-specific setting/issue. Are you able to consistency reproduce on other Windows 10 systems or even Windows 11?

sserrata avatar Oct 06 '22 13:10 sserrata

@FelixBurkhardAIT could and I just could do so as well on my other Windows 10 desktop PC. I also suspect that this is Windows specific.

skyfrk avatar Oct 06 '22 17:10 skyfrk

@skyfrk I was finally able to reproduce something similar on Windows 11 but it's not identical to the issue you reported:

https://user-images.githubusercontent.com/9343811/195428553-c48796c9-e7b8-4e1e-80ef-3185273aad7c.mov

Basically, what I am seeing is that the scrollbar completely covers the content while scrolling. Produced this behavior on Firefox on Windows 11 and Mac.

sserrata avatar Oct 12 '22 19:10 sserrata

@sserrata I'm observing the same issue on Windows using Firefox.

At the cost of sounding potentially dumb, would it potentially make sense to add scrollbar-width: none around https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/blob/1f6bfe79976c07f9b204bd584ea72e8705e4af9e/packages/docusaurus-theme-openapi-docs/src/theme/SchemaTabs/styles.module.css#L49?

Maybe relevant bugzilla thread: https://bugzilla.mozilla.org/show_bug.cgi?id=1460109#c12

benlei avatar Feb 14 '23 07:02 benlei

Hi @benlei, thanks for the suggestion. It's been tough to reproduce this particular issue, hence why we haven't been able to address it yet. Can you try applying scrollbar-width: none in inspect mode to see if it solves the issue?

sserrata avatar Feb 14 '23 13:02 sserrata

Hi @benlei, thanks for the suggestion. It's been tough to reproduce this particular issue, hence why we haven't been able to address it yet. Can you try applying scrollbar-width: none in inspect mode to see if it solves the issue?

@sserrata I was able to apply that to an element (body) in my developer console and it hid it, yes. I'm not sure if there are other things to test around it, though. There doesn't seem to be drag scrolling with or without it on Desktop. I was able to press the < and > icons to see the rest of the body responses (place an order for a pet).

benlei avatar Feb 14 '23 17:02 benlei

Here are some pictures:

image

Adding in the scrollbar-width:none property to response: image

benlei avatar Feb 15 '23 04:02 benlei

@blindaa121 any thoughts on using scrollbar-width: none?

sserrata avatar Feb 17 '23 15:02 sserrata

@sserrata I think scrollbar-width: none works fine 👍

blindaa121 avatar Feb 17 '23 15:02 blindaa121

@sserrata Any update for this?

benlei avatar Feb 22 '23 01:02 benlei

I can reproduce this on a mac in firefox, and scrollbar-width: none seems to do the trick.

IanVS avatar Feb 27 '23 16:02 IanVS

This should be addressed in v2.0.0-beta.1 but would appreciate if someone could help test. Thanks!

sserrata avatar Mar 10 '23 16:03 sserrata

@sserrata It is not fixed in the preview (https://docusaurus-openapi-36b86--pr439-0r874qft.web.app/petstore/place-order/)

image


Once again if I use the browser dev console to add in scrollbar-width: none it resolves the issue:

image

benlei avatar Mar 16 '23 05:03 benlei

@sserrata Any update for this?

benlei avatar Mar 30 '23 06:03 benlei

I am experiencing an issue which I think is related to this one. In Firefox for ubuntu, when you scroll in the language tabs, you can scroll in the codeBlockTitle, but you are also able to scroll in codeBlockLines, which causes different behaviour depending what container you are focused on, as well as a double scroll bar (which I can sadly not capture in my screenshots). However, I do not experience this effect on any of the other components, nor are any other scrollbars visible which should not be.

This is the normal setting, where you are at the top of the code and the title is visible. image

Then, you can scroll while focused on codeBlockTitle, making the title disappear. image

But you can also scroll while focused on codeBlockLines, which has the (intended?) effect of actually scrolling through the code. image

Gijsdeman avatar Apr 14 '23 09:04 Gijsdeman

This also occurs on Firefox on Mac, I think when an external mouse is connected. Still present on v3.0.0 beta.

matteocontrini avatar Dec 06 '23 10:12 matteocontrini

@blindaa121, any idea if has been addressed or if it's still an issue?

sserrata avatar Mar 27 '24 19:03 sserrata

@sserrata Ah still looks reproducible on my end, I'll put up the PR for the fix. 👍

blindaa121 avatar Mar 27 '24 21:03 blindaa121

Issue has been resolved in https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/pull/785

blindaa121 avatar Mar 28 '24 16:03 blindaa121