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 to the selected line manually #1617

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lqez
Copy link

@lqez lqez commented Feb 16, 2019

Q A
Bug fix? yes
New feature? no
Breaking change? no
Deprecations? no
Tests added? no
Fixed issues no
License Apache-2.0

linenumber.js creates line numbers in source codes dynamically. In some cases, #linenumber hash anchor does not work properly by timing issues. So I add linenumberElement.scrollIntoView() to scroll manually.
XRef: mochajs/mocha-docdash#2

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.

None yet

1 participant