Skip to content

uxebu » blog » Blog Archiv » TouchScroll, a scrolling layer for WebKit mobile [update]

April 25, 2012

Scroll for iPad

uxebu » blog » Blog Archiv » TouchScroll, a scrolling layer for WebKit mobile [update].

Hi Ev,

please excuse the late answer – I’ve been on parental leave for the
last weeks and didn’t look at my emails.

I hope it still helps: It is possible to use TouchScroll for multiple
areas. Include the script once and apply it to several elements:

var scrollerA = new TouchScroll(document.getElementById(‘scroller-a’),
{elastic: true});
var scrollerB = new TouchScroll(document.getElementById(‘scroller-b’),
{elastic: true});

If you plan to hide and show different scrollable areas, you should
re-activate the scroller when making it visible:

scrollerB.setupScroller(true);

Regards,
David

On Thu, Apr 26, 2012 at 12:52 PM, E.P. <rokker@seznam.cz> wrote:
>
> Hi David,
>
> Thank you for your work on TouchScroll.
> I haven’t figure out though how to use the script on one document multiple times. Is it even possible?
>
> Thank you for your reply.
>
> Regards,
> Ev

Advertisements

From → iPad, JavaScript

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: