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

When opening ToC on mobile, ensure active ToC item is scrolled into view #54

Merged
merged 11 commits into from
Mar 1, 2024

Conversation

Comefled
Copy link
Contributor

Could also be made an option if you don't want to change the current behavior.

@janosh janosh changed the title When opening mobile view, scroll to the active item When opening ToC on mobile, ensure active ToC item is scrolled into view Mar 1, 2024
Copy link
Owner

@janosh janosh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks great suggestion! happy to change the default behavior to this

@janosh janosh merged commit 34b92a0 into janosh:main Mar 1, 2024
4 checks passed
@Comefled
Copy link
Contributor Author

@janosh Could you release this as a new version, so my website can benefit from it?

@janosh janosh added enhancement New feature or request mobile Issues specific to mobile screens testing Test all the things labels Mar 21, 2024
@janosh
Copy link
Owner

janosh commented Mar 21, 2024

v0.5.8 is now on NPM

@Comefled
Copy link
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request mobile Issues specific to mobile screens testing Test all the things
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants