Re: Touch interpretation?

2017-02-20 Thread J. Landman Gay via use-livecode

On 2/20/17 1:00 PM, Ben Rubinstein via use-livecode wrote:

So I've started coding simple heuristics for when a touch sequence is a
tap, a swipe, or a drag; and the next step is to consider when it is
actually a two-finger gesture.

But obviously the community has been there way before me. Are there any
shared libraries developed to implement this? Or at least commonly
agreed good heuristics?


Search the LC Lessons. I found a swipe example here:


but I remember some other lessons that also worked with both swipe and 
taps. Basically, if it isn't a swipe, you implement the tap behavior. 
There are also some lessons on 2-finger swipes in there somewhere. A 
couple that showed up in a search for "2 finger":






--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Touch interpretation?

2017-02-20 Thread Ben Rubinstein via use-livecode
Being a lazy sort, until now on mobile apps (which are all for internal use, 
not publication) I've just used the standard controls, and at most tracked 
mousedown/mouseup (for convenience of desktop development) to drag something.


However now I'm trying to make a rather more native-like app, and respond to 
swiping in various directions, and two-finger pinches.


So I've started coding simple heuristics for when a touch sequence is a tap, a 
swipe, or a drag; and the next step is to consider when it is actually a 
two-finger gesture.


But obviously the community has been there way before me. Are there any shared 
libraries developed to implement this? Or at least commonly agreed good 
heuristics?


TIA,

Ben

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode