facebook

Back Button / Return to Previous Page Position

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #323487 Reply

    louisoneal
    Member

    I’m creating a book styled app, with a large amount of “List Item” (like a total of about 150). When the user clicks on a List Item it takes them to a particular section of the book. So say a user clicks on “List Item” #80, the problem that I’m having is that when the user hits the Back Button, the screen goes back to the very top of the List Item section starting at #1 instead of returning to the midway point where List Item #80 is located. So then the user has to scroll all the way down the list to get back to #81, if he was going in chronological order.

    Is there a way to get the return screen / Back button to return the user to the exact location of where the list item was clicked?

    Thanks!

    #323659

    louisoneal
    Member

    Bump

    #323673

    support-michael
    Keymaster

    @louisoneal

    >Is there a way to get the return screen / Back button to return the user to the exact location of where the list item was clicked?

    By default page’s scroll location is not cached and restored on return to the page. My thought is that you could store page positioning details in the prePageTransition() function call when user leaves a page. Then in the same call when user returns to the page in postPageTransition() function read the cached page settings and adjust the page’s scroll position. The only thing that gives me pause is that I recently was trying to manually scroll a page to a specific x,y position and the function was acting very quirky and not scrolling to the specific pt.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Back Button / Return to Previous Page Position

You must be logged in to post in the forum log in