facebook

How to prevent scrolling panel resetting position: CLOSED

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    paulD
    Member

    Hi everyone

    I have a long scrolling panel containing a series of list items. On clicking a list item it transitions to another page showing an image. When the back button is pressed on the image page it goes back to the scrolling panel but it resets the position back to the top of the list. This means that you have to scroll back to the position you where at.

    Is there a way of stopping the automatic scroll reset so that the scroll panel maintains its last position?

    Thanks for any help

    Paul

    #334531

    Hi Paul,

    We have received this same feedback a few days ago and I have already opened a enhancement bug for consideration in future versions.

    #334532

    paulD
    Member

    Ok thanks for getting back to me. Just for information is it iscroll 4 you use to implement the scroller in mobione?

    Thanks

    Paul

    #334735

    @Paul,

    Yes, iscroll4 is used for the panel’s scroller implementation.

    #335257

    paulD
    Member

    Hi guys sorry to bring this topic up again but my app has come back from being tested by the users and the feedback is that they really don’t like the scroll reset.

    Is there a way I can do a hack to prevent the scroll reset?

    thanks

    Paul

    #335276

    Hi Paul,

    Discussing it with dev team, but I’m afraid that it won’t be a easy way to achieve it.

    #335280

    Brandon
    Member

    Could this be done with a variable and manually place the scroll panel back to where it was?

    #335281

    paulD
    Member

    I did think of that, but the problem is that when the page reloads it must fire a function to reset the scroller which overwrites any variable or function from the previous page or back button.

    #335282

    Brandon
    Member

    What about keeping the value in local storage?

    #335298

    paulD
    Member

    Not sure how to do that? I will have a look and read up about it.

    Thanks for the suggestion.

    Paul

    #335426

    support-michael
    Keymaster

    @all

    Please note we are currently testing an enhancement that may improve your issues with a panel’s scroll position reset when revisiting the panel’s screen from other screens in your app. We will post a follow up when we have the solution available for early testing.

    How it works that a screen that is visited from either a Back button, a GoBack action or phoneui.goBack() javascript function call will not have its scrolling panel’s reset. All screens access via logical forward navigation will be reset as they are now.

    #335430

    paulD
    Member

    Thats great news Wayne thanks for the follow up.

    #335790

    Hi Paul,

    Please see this dev build available, that includes the function you need to avoid the reset in your lists.
    http://www.genuitec.com/support-genuitec/viewtopic.php?f=2&t=5054

    #335816

    paulD
    Member

    Hi Octavio

    Brilliant news, thanks to you and the rest of the team for fixing my issue. I’m away from my workstation this weekend but i will give it ago first thing monday and let you know how it goes.

    My users will be very happy,

    Thanks again

    Paul

    #335883

    paulD
    Member

    Hi Guys

    Tested the new build and it works like a charm. Thanks again for the effort you put into changing this, it’s great!

    Thanks

    Paul

Viewing 15 posts - 1 through 15 (of 16 total)
Reply To: How to prevent scrolling panel resetting position: CLOSED

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