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

scrollTo function should have an alignTo option #13

Open
diego-schurch opened this issue Apr 15, 2020 · 0 comments
Open

scrollTo function should have an alignTo option #13

diego-schurch opened this issue Apr 15, 2020 · 0 comments

Comments

@diego-schurch
Copy link

diego-schurch commented Apr 15, 2020

Using the scrollTo function I got some errors clicking elements since always aligns the element to the top. It has x and y offsets but running this on a different device is hard. So it will good to have an extra parameter to maybe have the option to align the element to top, bottom and center. I have checked the function scrollTo and I can add that functionally to it. It can be something similar to this: https://www.w3schools.com/jsref/met_element_scrollintoview.asp

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

No branches or pull requests

1 participant