Skip to main content
Participant
October 17, 2014
Question

Captivate 8 - scrolling in responsive project - scroll reset?

  • October 17, 2014
  • 2 replies
  • 797 views

Hi,

I'm hoping someone can help me out here.  I've unlinked the slide height from the device height on several slides to enable scrolling when viewing content on a mobile device.

The problem I have is that when I scroll to the bottom of one page and select next button or swipe, the next page appears but is scrolled to the same value as the page I've just left rather than scrollTop to 0.

To try and resolve this I have created an advanced action on my next button and executed the following javascript:

$( document.body ).scrollTop( 0 );

and then called 'Go to next slide'.  I have also used a similar approach on the previous button.

This appears to work when going backwards but not so going forward.

Has anyone else come across this issue yet and if so have they found a decent fix or am I just missing a really straight forward setting somewhere?

Any help would be very much appreciated

Thanks

Matt

    This topic has been closed for replies.

    2 replies

    samuelr78814002
    Participant
    October 17, 2015

    I've added the script

    $(document).ready(function(){
      $
    (this).scrollTop(0);
    });


    to the page action on enter. But it only works in some browsers...not Safari. I don't understand why it does just scroll to the top.

    mohanadas
    Adobe Employee
    Adobe Employee
    November 4, 2014

    Hi Matt,

    It would be helpful if you could share the project you used with us. Also mention the Captivate version you are using (Cativate 8 or 8.1) and the mobile device you are viewing it on.

    Thanks,

    Mohana