Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swipe behavior for touch applications

I'm writing a manager for ActionScript to detect SWIPE gesture. Yes, there is API to work with native (OS) gesture already, but my plan is:

  1. so it would work even for singletouch screens (usual platforms in other words. singletouch screen or just a regular mouse input).
  2. to have slightly more low-level API. Basically I'm processing regular MOUSE_DOWN@target, MOUSE_MOVE@stage и stage.MOUSE_UP@stage.
    Not a rocket-science. But in order to make it working smooth (in terms of UX) you really have to think of details.

So is anyone has some small details, tips&tricks in mind? Any experience from other mobile platforms (iOS/Android/...)? What is the SWIPE gesture in low-level terms?

My concerns:

  1. Should this event (like TransformGestureEvent) be fired on MOUSE_UP@stage or before finger/mouse release? (if anyone has antroid-device, could you check TourDeFlex app how it happens there?)
  2. Main question: how to filter out? I tend to formula "(distance passed along our axis greater then N && distance passed along orthogonal axis NOT greater then M) during last T ms".
    Doubt, whether to have a certain time window (starting from finger/mouse down) to do the gesture.. so that everything would be aborted after this time window (timer) is closed.

Looking forward for your notes and comments, thank you.

UPD: Some nice found ideas: http://smartandroidians.blogspot.com/2010/04/swipe-action-and-viewflipper-in-android.html using some sort of velocity

like image 951
average dev Avatar asked Apr 13 '11 14:04

average dev


People also ask

What are the touch events and gestures in mobile application?

Android supports a range of touch gestures such as tap, double-tap, pinch, swipe, scroll, long press, drag, and fling.

What is the swipe gesture?

This gesture is also called tap and hold and can be used to activate special menus. A swipe is is when you touch and slide your finger across the screen. You can swipe quickly or slowly, depending on what you're doing on your phone or tablet.

What is gestures in mobile application?

Android provides special types of touch screen events such as pinch , double tap, scrolls , long presses and flinch. These are all known as gestures.


1 Answers

I have started my own open source project. Check out Gestouch on Github: http://github.com/fljot/Gestouch

like image 69
average dev Avatar answered Oct 21 '22 13:10

average dev