msgestureend event does not fire
-
Thursday, August 02, 2012 11:36 PM
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
-
Monday, August 06, 2012 2:46 PMModerator
Hi
You may be missing the class win-interactive per Kraig's reply to this post: http://social.msdn.microsoft.com/Forums/en-US/winappswithhtml5/thread/b99082ed-1dd8-4654-b38a-dfcd2eeb65a7
Hope it helpful.
- Marked As Answer by Dino HeModerator Friday, August 31, 2012 6:59 AM


