user1762608
user1762608

Reputation: 245

How to stop MeteorJs to scroll to top of page when template re rendered

The question says it all. I am using infinite scroll example from Meteropedia http://www.meteorpedia.com/read/Infinite_Scrolling but when I scroll down to load more documents from collection to page move to top. I have tried this solution How to prevent content from scrolling when Meteor updates the collection but still facing the same problem. Pleas help me resolve this issue.

Upvotes: 1

Views: 867

Answers (1)

Serkan Durusoy
Serkan Durusoy

Reputation: 5472

This sounds like you are using iron router and it is unfortunately due to an unresolved bug that gathered some attention due to its manifestation on the Discover Meteor book.

This SO question in fact asks the same while, more info can be found on the discover meteor book's github issues with further discussion here

Basically, you need to revert back to meteor 0.8.2 and iron router 0.7.0

Upvotes: 1

Related Questions