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

Replace hacky window.setTimeout(50) callback with scrollend event to keepActiveTocItemInView #53

Merged
merged 4 commits into from
Jan 22, 2024

Conversation

janosh
Copy link
Owner

@janosh janosh commented Jan 22, 2024

Maybe fixes #52.

25c7b96 bump pre-commit and pkg deps
9eaa6a2 use scrollend event over hacky window.setTimeout(50) callback to keepActiveTocItemInView
a79f669 readme document required scrollend event browser support for keepActiveTocItemInView=true

@janosh janosh added ux User experience fix Bug fix labels Jan 22, 2024
@janosh janosh merged commit 2f49c33 into main Jan 22, 2024
4 checks passed
@janosh janosh deleted the fix-hack-with-scroll-end-event branch January 22, 2024 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix ux User experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

keepActiveTocItemInView should be false by default
1 participant