facebook

Scroll a panel automatically? Anyone done this?

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

    Unknown Author
    Participant

    I’m looking for the best technique to scroll a panel automatically, starting at height zero, going to the end of the panel. When the length of the panel is reached, start scrolling back up — all as smoothly as possible. When the top is reached, start scrolling back down.

    (Still waiting for that landscape mode compilation fix! I have a very-delayed landscape app update ready to ship!!)

    -1TC

    #349039 Reply

    Unknown Author
    Participant

    Trying this, but getting an error message from the emulator that the “top” property is not defined. The list is inside a panel.

    
    $(document).ready(function (){
                $('html, body').animate({
                    scrollTop: $('#m1-Homescreen_iphone5-listItem15').offset().top
                     }, 2000);
    });
    
    #349088 Reply

    Hi 1thinchip,

    Are you trying to scroll a panel with animation? If yes check out this article as a starting point for your animation logic: https://www.genuitec.com/support-genuitec/viewtopic.php?f=14&t=3818

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Scroll a panel automatically? Anyone done this?

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