Redocly / redoc

📘 OpenAPI/Swagger-generated API Reference Documentation
https://redocly.github.io/redoc/
MIT License
23.59k stars 2.3k forks source link

Left panel perfect scrollbar auto position not working #2136

Open arjun86986 opened 2 years ago

arjun86986 commented 2 years ago

Hi, for left menu, if we scroll the page body the scrollbar for left navigation is not changing its position and this is because of perfect scrollbar ps--scrolling-y this not applied when we scroll the page from main body of the page.

AlexVarchuk commented 2 years ago

hi @arjun86986, please provide steps to reproduce and a definition for it. Thanks

arjun86986 commented 2 years ago

Hi @AlexVarchuk thanks for asking the steps, please find below steps for the problem:

Go to the https://redocly.github.io/redoc/

Have the scrollbar for Left menu right which can scroll and according to selection of middle part section its highlight the Left menu items right and same with when we scroll from the page level scrollbar which is I have marked in another screenshot image

image

But when you reached to the end of the Left menu which is under view section and after other items those are out of the screen area those also selected but the Scrollbar of Left menu is not changing its position it should scroll top based on the selection of middle part selected section.

Please let me know if you more question on this or may be we can connect on teams or chat I will show it to you.

In redoc.js you can see for this function Pp(e) you can add console log for return"ps--scrolling-"+e and you can use browser scrollbar you can see this function is not working.

Thanks in advance

AlexVarchuk commented 2 years ago

@arjun86986 try to use nativeScrollbars: true. Maybe it helps. Can you add some screen recording, maybe it more clarify your problem? Thanks

arjun86986 commented 2 years ago

Hi @AlexVarchuk I am not able to record but have recorded the steps.

You can see in this steps scrollbar position for left menu is working while we scroll from left menu scrollbar but if will scroll it from page main menu its not working. redoc-scroll-issue.pdf

arjun86986 commented 2 years ago

Hi @AlexVarchuk thanks for considering this issue, It would be great for us if you can tag priority for this issue so that will make a note somewhere for this at our end.

Thanks

AlexVarchuk commented 2 years ago

related to https://github.com/Redocly/redoc/pull/1823. We'll investigate it case more deeply.

justinmeskan commented 2 years ago

I am having the same issue, when I scroll our Redocly page the side menu does nothing, ok actually every now and then it opens the correct way but after a refresh, it stops again. I spent the entire day trying to debug this issue and was not able to.

I cant send screenshots because obvioiusly our API's are confidential.

arjun86986 commented 2 years ago

Hi @AlexVarchuk tried with https://github.com/Redocly/redoc/pull/1823 but didn't resolved the issue.

AlexVarchuk commented 2 years ago

Sorry, but I am super busy. Please investigate if you have a chance.

MaryamKazemit commented 3 months ago

I am having the same issue, when I scroll our Redocly page the side menu does nothing, ok actually every now and then it opens the correct way but after a refresh, it stops again. I spent the entire day trying to debug this issue and was not able to.

I cant send screenshots because obvioiusly our API's are confidential.

hi did you fix it? and what did you do?