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

Scroll not working #433

Closed
FrantisekVrab opened this issue Mar 7, 2018 · 6 comments
Closed

Scroll not working #433

FrantisekVrab opened this issue Mar 7, 2018 · 6 comments

Comments

@FrantisekVrab
Copy link

Hi,

first, I have installed Redoc from cdn. Alsto I installed gem https://github.com/krsyoung/redoc-rails on Rails 4 with Turbolinks 5. In both tries everything works except the scroll after the click on the menu, or menu highlighting menu items when scrolling.

Can you assist how to proceed? Thanks.

@RomanHotsiy
Copy link
Member

How can I reproduce this? could you create a minimal reproducible sample?
Would be great if you created a repo with all the setup.

@krsyoung, maybe you can help out.
@FrantisekVrab try also the new version of redoc-rails with updated ReDoc. Maybe the issue will be resolved.

@RomanHotsiy
Copy link
Member

@FrantisekVrab did you solve the issue?

@FrantisekVrab
Copy link
Author

FrantisekVrab commented Mar 16, 2018

Hi, I have also used a redoc-rails, however with no success. There was no error message.

Later I found that problem is probably that we are using a jQuery, jQuery-rails and turbolinks on the site and that's in conflict with the Angular that redoc is build on. I wasn't able to debug this.

So I have moved to the non-rails application and everything works.

@RomanHotsiy
Copy link
Member

Thanks for the update! Closing this issue.

@bmxkakw
Copy link

bmxkakw commented Apr 26, 2019

In case somebody's still in trouble:
html { scroll-behavior: smooth; }
broke scrolling of Redoc document for me.

@thefolake
Copy link

Remove

html{
scroll-behavior: smooth;
}

and you are good to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants