Momentum scrolling up and down an image.

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
abanowBUSTfGf
Posts: 63
Joined: Sat Dec 22, 2012 3:01 am

Momentum scrolling up and down an image.

Post by abanowBUSTfGf » Sun Feb 03, 2013 5:41 am

I have a single very long vertical image that I want to momentum scroll up and
down via a touchscreen. Is there any Livecode script for this. Currently, dragging the finger up and
down the screen is very slow. I'm deploying on a Samsung Galaxy tablet.
Regards

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Momentum scrolling up and down an image.

Post by jacque » Sun Feb 03, 2013 11:56 pm

Are you using a native Android scroller?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

abanowBUSTfGf
Posts: 63
Joined: Sat Dec 22, 2012 3:01 am

Re: Momentum scrolling up and down an image.

Post by abanowBUSTfGf » Mon Feb 04, 2013 7:11 am

Hi, I'm using the normal tablet touchscreen but this never does any momentum scrolling

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Momentum scrolling up and down an image.

Post by jacque » Mon Feb 04, 2013 10:07 pm

LiveCode provides a way to create scrollers that are native on mobile devices. These work differently than the built-in scrollbars and can do what you want. You need to set them up in a script. Here is a lesson about it:

http://lessons.runrev.com/s/lessons/m/4 ... ll-a-field

The lesson works with a scrolling field, but if you group your image and scroll the group instead, it will be the same.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply