Skip to content

can't jump to right anchor when there are lots of pictures in doc #1753

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

Open
1 task
ballever opened this issue Feb 16, 2022 · 2 comments
Open
1 task

can't jump to right anchor when there are lots of pictures in doc #1753

ballever opened this issue Feb 16, 2022 · 2 comments
Labels
bug confirmed as a bug

Comments

@ballever
Copy link

Bug Report

Steps to reproduce

  1. open a page which contains lots of picture
  2. click one head at the bottom of this page
  3. copy this url
  4. open a new page and paste url to page and enter
  5. page loaded and scroll down
  6. finally stops at a place which is not my excpet

if I remove all pictures, every thing works fine

What is current behaviour

page stop at a place, not to right anchor place

What is the expected behaviour

page stop to target anchor

Other relevant information

  • Bug does still occur when all/other plugins are disabled?

  • Your OS:

  • Node.js version: 12.16.2

  • npm/yarn version: 6.14.4

  • Browser version: Edge

  • Docsify version: 4.12.2

  • Docsify plugins: many

Please create a reproducible sandbox

Edit 307qqv236

Try jump to https://s7wzo9.csb.app/#/?id=dfdsfdsf

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

@trusktr
Copy link
Member

trusktr commented Feb 23, 2022

Ah, yeah, that's annoying. It performs the jump calculation before the images are loaded (race condition) so it may not end in the place where it should.

@trusktr trusktr added the bug confirmed as a bug label Feb 23, 2022
@slym
Copy link

slym commented Jan 8, 2024

Is there any workaround for this issue ?

EDIT : I found a workaround in #351 but with limited success.

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

No branches or pull requests

3 participants