Skip to content

Fix #1029 sidebar not auto-scrolling#1052

Merged
ehuss merged 1 commit into
rust-lang:masterfrom
morphologue:fix-sidebar-autoscroll
Oct 5, 2019
Merged

Fix #1029 sidebar not auto-scrolling#1052
ehuss merged 1 commit into
rust-lang:masterfrom
morphologue:fix-sidebar-autoscroll

Conversation

@morphologue
Copy link
Copy Markdown
Contributor

This fixes #1029

@morphologue
Copy link
Copy Markdown
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
Copy Markdown
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
ngolin added a commit to ngolin/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