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

scrollIntoView doesn't account for container scaling #123

Open
gregplaysguitar opened this issue Jul 4, 2018 · 0 comments
Open

scrollIntoView doesn't account for container scaling #123

gregplaysguitar opened this issue Jul 4, 2018 · 0 comments

Comments

@gregplaysguitar
Copy link

Scroll distance calculations seem to be thrown when the element to be scrolled or any of its parents are scaled.

To reproduce,

  • open up the demo in Safari: http://iamdustan.com/smoothscroll/
  • use the web inspector to scale the element, i.e. transform: scale(.5);
  • Click on the element.scrollIntoView demo

Result: the element only scrolls part of the way to its destination.

Happy to look into a fix for this

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