Page 1 of 1

Swipe Over Image

Posted: Thu Jan 14, 2016 10:23 am
by Googie85
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.

Re: Swipe Over Image

Posted: Thu Jan 14, 2016 11:08 am
by SparkOut
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.

Re: Swipe Over Image

Posted: Fri Jan 15, 2016 3:43 am
by Googie85
Could someone offer an example of this?

Many Thanks,

Matthew.

Re: Swipe Over Image

Posted: Fri Jan 15, 2016 5:10 am
by Googie85
Hello Guys!!

I have figured it out with the last post!!

Thanks!

Matthew.