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

Doesn't scroll to top - initially #47

Open
dpatte opened this issue Apr 25, 2018 · 0 comments
Open

Doesn't scroll to top - initially #47

dpatte opened this issue Apr 25, 2018 · 0 comments

Comments

@dpatte
Copy link

dpatte commented Apr 25, 2018

The landing page of my site has a long menu down the left, and content on the right. The content on pages is often shorter than the menu. All pages have the same menu on the left.

When a person initially goes to the site and selects an item near the bottom of the menu, it goes to the correct page, but doesn't go to the top of that page.

This only seems to happen initially. After positioning to the top of the selected page, other selections from the menu do seem to scroll to the top of newly selected pages.

I am using iron router.

I noticed that in this case, if I try to trap in router-autoscoll.js near line 81

if (self.ready()) callFn();

Chrome reports an error 'can't flush inside tracker autorun' - if this helps.

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