Swipe Over Image

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Googie85
Posts: 227
Joined: Tue Aug 05, 2014 10:07 am

Swipe Over Image

Post by Googie85 » Thu Jan 14, 2016 10:23 am

Hello Guys,

I am trying to generate a message when a user swipes over an image on my Android app. I have tried mouseOver and others in the dictionary. These dont seem to work. Any help will be appreciated.

Many Thanks,

Matthew.

SparkOut
Posts: 2947
Joined: Sun Sep 23, 2007 4:58 pm

Re: Swipe Over Image

Post by SparkOut » Thu Jan 14, 2016 11:08 am

Look up "touchStart" and "touchEnd" - you will need to check the position of the touches and check the difference to determine how far the the move has been and whether it qualifies as a swipe. If it does, then you can run your code that responds to what you hoped might be a swipe message.

Googie85
Posts: 227
Joined: Tue Aug 05, 2014 10:07 am

Re: Swipe Over Image

Post by Googie85 » Fri Jan 15, 2016 3:43 am

Could someone offer an example of this?

Many Thanks,

Matthew.

Googie85
Posts: 227
Joined: Tue Aug 05, 2014 10:07 am

Re: Swipe Over Image

Post by Googie85 » Fri Jan 15, 2016 5:10 am

Hello Guys!!

I have figured it out with the last post!!

Thanks!

Matthew.

Post Reply