0 Replies Latest reply on Sep 12, 2011 2:57 PM by stevemcl5

    Gesture swipe supported on StageWebView?

    stevemcl5

      Hi, I've got a mobile app and I have a view defined with gestureSwipe="handleSwipe(event)"

       

      private function handleSwipe(event:TransformGestureEvent):void
                  {
                      trace('handleSwirpe()');
                      // Swipe was to the right
                      if (event.offsetX == 1 ) { // or -1 for the left
                          webView.viewPort = null;
                          navigator.popView();
                      }
                  }

       

      In this view I have a StageWebView defined on the top half of the screen,

      when I 'swipe' below the StageWebView, it works fine, when I 'swipe' on the StageWebView it does not

      recognize it.

       

      Do I need to add an event listener to the StageWebView itself?  or ???

      thanks,

      steve