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

Feature: Automatically scroll element into view if needed #5

Open
ShivamJoker opened this issue Feb 24, 2022 · 2 comments
Open

Feature: Automatically scroll element into view if needed #5

ShivamJoker opened this issue Feb 24, 2022 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@ShivamJoker
Copy link
Owner

We need something like scrollIntoViewIfNeeded but it's not majorly supported and doesn't have smooth behaviour

https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoViewIfNeeded

Content scroll height needs to be added as well while scrolling the element

@ShivamJoker ShivamJoker added enhancement New feature or request help wanted Extra attention is needed labels Jul 14, 2022
@ashutosh887
Copy link

I would like to give this issue a try.

@ShivamJoker
Copy link
Owner Author

Awesome. Just send a PR when you are done, use the existing example code to check if it scrolls automatically in the bottom.

@ShivamJoker ShivamJoker added the good first issue Good for newcomers label Oct 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants