-
Notifications
You must be signed in to change notification settings - Fork 56
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
Change timing of window.scrollTo #17
Labels
Comments
cclo7
pushed a commit
to cclo7/ember-router-scroll
that referenced
this issue
Jul 15, 2017
cclo7
added a commit
to cclo7/ember-router-scroll
that referenced
this issue
Jul 15, 2017
briangonzalez
pushed a commit
that referenced
this issue
Aug 2, 2017
@bcardarella Should we consider this issue closed after #101? |
👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently
window.scrollTo
is fired indidTransition
which itself is wrapped in an Ember.runloop call. And the transition is fired from within the runloop. The result is that there is a jitter when scrolling to a different position. The page renders and there is a noticeable jump. It is fast but noticeable.I believe the scroll positioning should be done elsewhere. It would be great if we could hook into an afterRender callback. Not sure if one is fired for the entire page.
The text was updated successfully, but these errors were encountered: