Distinguishing between tap and swipe
    Sannyasin Brahmanathaswami 
    brahma at hindu.org
       
    Fri Mar 10 00:12:55 EST 2017
    
    
  
Mobile: To distinquish tap from swipe, I'm using the abs of the difference of the mouseloc on mousedown and mouseup….
private function _mouseMoved
put abs (the mouseV - item 2 of sStartLoc) into someDistance
put someDistance >= 10 into someBoolean
return someBoolean
end _mouseMoved
But this is quite "sluggish" on the any phone, meanwhile any straight forward
on mouseup
do something
end mouseup
is quite snappy.
Is there a better way to trap for swipe and immediately trigger a tap.
BR
    
    
More information about the use-livecode
mailing list