Gestouch icon indicating copy to clipboard operation
Gestouch copied to clipboard

Android SwipeGesture GestureEvent.GESTURE_BEGAN

Open fxdevGer opened this issue 11 years ago • 1 comments

Hi,

I want to use the API for this simple Code: My Project is an Adobe Air Mobile Project, with the latest AIR SDK and compiled to Flash Player Version 11.7

_swipe = new SwipeGesture(this); _swipe.addEventListener(org.gestouch.events.GestureEvent.GESTURE_RECOGNIZED, onGesture); _swipe.addEventListener(org.gestouch.events.GestureEvent.GESTURE_STATE_CHANGE, onGestureStateChanged); _swipe.addEventListener(org.gestouch.events.GestureEvent.GESTURE_BEGAN, onGestureBegan);

The GESTURE_BEGAN Event never fired, only the GESTURE_RECOGNIZED Event works. Did I miss something?

I need the the following Events:

GESTURE_BEGAN, GESTURE_CHANGED and GESTURE_ENDED

Best regards

Christian

fxdevGer avatar Aug 21 '13 15:08 fxdevGer

Hi,

Swipe gesture is a discrete gesture like a tap gesture (in opposition to a continuous gesture like a pan) so he has no GESTURE_BEGAN event only a GESTURE_RECOGNIZED. If you need the GESTURE_BEGAN event maybe you could use a PAN gesture or simply use the native TOUCH_BEGIN event.

thomaspaillot avatar Aug 25 '13 16:08 thomaspaillot