Answered msgestureend event does not fire

  • Thursday, August 02, 2012 11:36 PM
     
      Has Code

    In my metro app,I was using some MSGesture events to do dragging on some "elements" and it was working fine.

    Then I had to add another swipe feature on the "container" of these elements and did it in a similar manner.

    The problem is that it works fine sometimes but after a while the "MSGestureChange" events are fired but "MSgestureEnd" isn't fired.

    I can't understand why this is happening as the gesture must always end with a "MSGestureEnd" event.

    This is the basic code I was using for both the gestures.

    container.addEventListener("MSPointerDown", onPointerDownContainer, true);           container.addEventListener("MSGestureChange", onGestureChange, true);        container.addEventListener("MSGestureEnd", onGestureEndContainer, true);

    child.addEventListener("MSPointerDown", onPointerDownContainer, true);
         
    child.addEventListener("MSGestureChange", onGestureChange, true);
                                                                      child.addEventListener("MSGestureEnd", onGestureEndContainer, true);

All Replies