Distinguishing between tap and swipe

Bob Sneidar bobsneidar at iotecdigital.com
Fri Mar 10 10:53:11 EST 2017


Whe the +10? Tolerance?

Bob S


> On Mar 10, 2017, at 05:36 , Randy Hengst via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Hi BR,
> 
> I’ve not used swipe a lot, but here is how I have used it to “erase” from a text field… the app is iOS iPad only. Below is the script of the text field.  It works quickly without a noticeable delay.
> 
> local tStartLocX, tEndLocX
> 
> on mouseDown
>   put the short name of target into tTargetFieldToClear
>   put item 1 the mouseLoc into tStartLocX
> end mouseDown
> 
> on mouseUp
>   lock screen
> 
>   put item 1 the mouseLoc into tEndLocX
> 
>   if tEndLocX + 10 < tStartLocX then
>      put empty into target
>   end if
> 
>   unlock screen
> end mouseUp
> 
> be well,
> randy



More information about the use-livecode mailing list