redoc icon indicating copy to clipboard operation
redoc copied to clipboard

Left panel perfect scrollbar auto position not working

Open arjun86986 opened this issue 3 years ago • 10 comments

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.

arjun86986 avatar Aug 18 '22 12:08 arjun86986

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

AlexVarchuk avatar Aug 18 '22 13:08 AlexVarchuk

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

arjun86986 avatar Aug 18 '22 15:08 arjun86986

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

AlexVarchuk avatar Aug 18 '22 15:08 AlexVarchuk

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 avatar Aug 22 '22 07:08 arjun86986

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

arjun86986 avatar Aug 25 '22 06:08 arjun86986

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

AlexVarchuk avatar Oct 03 '22 18:10 AlexVarchuk

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.

justinmeskan avatar Oct 27 '22 16:10 justinmeskan

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

arjun86986 avatar Oct 31 '22 14:10 arjun86986

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

AlexVarchuk avatar Oct 31 '22 14:10 AlexVarchuk