How to detect swipe direction?

Roger Eller roger.e.eller at sealedair.com
Sun Oct 6 17:09:11 EDT 2013


I want a different action to occur based on the direction the user swipes a
control.  For example:

   on swipeLeft
        set the backgroundColor of me to red
   end swipeLeft

   on swipeRight
        set the backgroundColor of me to green
   end swipeRight

Is there a one liner on mobile that can give me the direction, or
true/false, or l/r/u/d?

~Roger



More information about the use-livecode mailing list