docsify icon indicating copy to clipboard operation
docsify copied to clipboard

One single page site Sidebar item highlight jumps back to top (first) Header

Open paulhibbitts opened this issue 1 year ago • 0 comments

Bug Report

Steps to reproduce

  1. View single page with Sidebar
  2. Tap on lower item, and view item on page
  3. Scroll page back up

The highlighted item in the Sidebar jumps back to the first Header (item)

Current behaviour

The highlighted item in the Sidebar jumps back to the first Header (item)

Expected behaviour

As the page is scrolled up, each item should highlight one by one as the page is scrolled back to the top

Other relevant information

  • Docsify version:

Most recent (v5) Preview

  • [X] Bug still occurs when all/other plugins are disabled?

  • Docsify plugins (if the bug happens when plugins enabled, please try to isolate the issue):

  • Your OS: Mac

  • Node.js version:

  • npm/yarn version:

  • Browser version: Mac Chrome/Firefox/Safari

Please create a reproducible sandbox

Here is a demo using the most recent Preview:

https://paulhibbitts.github.io/docsify-v5-preview-single-page/#

To view bug, go to site, tap "Code" on Sidebar, and then scroll page back up.

Edit 307qqv236

Mention the docsify version in which this bug was not present (if any)

paulhibbitts avatar Oct 19 '24 21:10 paulhibbitts