Gestouch works great for me . but recently got some issue related to multi window .
A application which i am working on has multiple window .
The application is creating a Window object after initialization. now i want to add a ZoomGesture for the new Window and separate gesture event (swipe/pan)for main application . But one of them failed .
Please check just a basic code block of that part .
public var win:Window=new Window();
public var swipe:SwipeGesture;
public var zoom:ZoomGesture;
protected function init(event:FlexEvent):void
{
swipe=new SwipeGesture(this)
swipe.addEventListener(org.gestouch.events.GestureEvent.GESTURE_RECOGNIZED,onSwipe);
Gestouch works great for me . but recently got some issue related to multi window . A application which i am working on has multiple window . The application is creating a Window object after initialization. now i want to add a ZoomGesture for the new Window and separate gesture event (swipe/pan)for main application . But one of them failed .
Please check just a basic code block of that part .
public var win:Window=new Window(); public var swipe:SwipeGesture; public var zoom:ZoomGesture;
protected function init(event:FlexEvent):void { swipe=new SwipeGesture(this) swipe.addEventListener(org.gestouch.events.GestureEvent.GESTURE_RECOGNIZED,onSwipe);
win.open(false);
zoom=new ZoomGesture(win); zoom.addEventListener(org.gestouch.events.GestureEvent.GESTURE_BEGAN,onZoomStart); zoom.addEventListener(org.gestouch.events.GestureEvent.GESTURE_CHANGED,onZoomStart);
public function onSwipe(event:org.gestouch.events.GestureEvent):void { trace('on swipe') }
public function onZoomStart(event:org.gestouch.events.GestureEvent):void { trace('on zoom') }
The zoomGester is not working on the above state . but if i removed the swipe gesture part the zoom is working fine .