Jquery mobile scrollview - how to show hidden content and stop scrollview from snapping to its original position

I am working on a JQM project using the scrollview plugin.

Everything is set up for me, and scrollview works. However, the β€œhidden” content that needs to be scrolled does not load completely, and scrollview always returns to its original position.

Here is a link to an example:

example

Any tips on how to tame scrollview?

Thank!

+3
source share
1 answer

Ok I found out why it does not work. For this you need something like this:

<div class="wrapper" data-scroll="x" style="width: 100px; overflow-x:scroll;">
   <div class="element2Bscrolled" style="width: 800px;">some loooong text</div>
</div>

Working example: here .

In my original post, I just messed up the elements.

+2
source

All Articles