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

Fix #1029 sidebar not auto-scrolling #1052

Merged
merged 1 commit into from
Oct 5, 2019

Conversation

morphologue
Copy link
Contributor

This fixes #1029

@morphologue
Copy link
Contributor Author

I am temporarily hosting a fixed version of the Rust Book at https://rustbook-sidebar-autoscroll.s3-ap-southeast-2.amazonaws.com/index.html in case anyone else encounters this issue on that book (as I did). It was driving me nuts ;) Otherwise it's a fantastic resource though!

@ehuss
Copy link
Contributor

ehuss commented Oct 5, 2019

Awesome, thanks! This has been annoying for a while.

@ehuss ehuss merged commit 9efa9fd into rust-lang:master Oct 5, 2019
lihz6 added a commit to lihz6/mdBook that referenced this pull request Oct 11, 2019
ehuss pushed a commit to ehuss/mdBook that referenced this pull request Mar 9, 2020
Dylan-DPC-zz pushed a commit that referenced this pull request Mar 24, 2020
* Fix: Scroll sidebar to current active section (#1067)

* Clean: Some code related to PR #1052

* Change `scrollIntoViewIfNeeded` with `scrollIntoView`

* Don't use onload event for sidebar scroll to reduce flickering.

Co-authored-by: 李鸿章 <poodll@163.com>
Ruin0x11 pushed a commit to Ruin0x11/mdBook that referenced this pull request Aug 30, 2020
Ruin0x11 pushed a commit to Ruin0x11/mdBook that referenced this pull request Aug 30, 2020
* Fix: Scroll sidebar to current active section (rust-lang#1067)

* Clean: Some code related to PR rust-lang#1052

* Change `scrollIntoViewIfNeeded` with `scrollIntoView`

* Don't use onload event for sidebar scroll to reduce flickering.

Co-authored-by: 李鸿章 <poodll@163.com>
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

Successfully merging this pull request may close these issues.

Clicking scrolled link in menu jumps back up to top
2 participants