I'm using Kamaniri gem and jQuery infinite scroll for endless pagination. Everything works perfectly but when I visit other page and back to posts list page then the pagination starts from first page. Instead of starting pagination from first page it should remember the previous post location. I tried JavaScript History API: pushState and replaceState to update the URL according to the scroll position and navigate away from that page and click on browsers back button. It take me to previous scroll positions by scrolling and loading the contains till I get to previous scroll position. But this is taking too much of time by scrolling and loading the contains. What I need is to be instantly back to the previous scroll position when I click browser back button just like in mobile Facebook, Twitter and G+. What will be the best solution? How can I achieve this task? Here is the link of my question in StackOverflow: http://stackoverflow.com/questions/30993497/rails-endless-pagination-should-remember-previous-position-when-back-from-other Thanks in advance.
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4e23a22b-d7df-473b-a4a4-696a4df6c772%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.