none
Swipe gesture detection in Javasript RRS feed

  • Question

  • Hi

    I am trying to understand if there is any possibility to detect swipe gestures in Javascript in Windows Phone 7.5 Mango. According to some other msdn threads and discussions on the net I understand that it is not possible in current releases of Windows Phone 7. But is there really no solution for this at all?

    In many other browsers it is possible to use touch or mouse events to detect the swipe gesture. But Windows Phone 7 does not implement support for touch events and mouse events are not fired in a swipe gesture.

    Is Microsoft working on an update that will add touch events to Windows Phone 7?

    Is it possible to create a silverlight/C# application/plugin that somehow forwards/creates touch events in the Javascript environment? Or has someone already created something like this? The idea is similar to how flash-canvas adds canvas support in IE8 and older. 

    Or is there some other way to detect a swipe gesture from Javascript that I have missed.

    Regards

    http://social.msdn.microsoft.com/Forums/en-US/windowsphone7series/thread/89a050a6-d8f0-4f5e-93e4-3f471ac9ff35

    http://forums.create.msdn.com/forums/p/94759/567031.aspx#567031

    http://www.risingj.com/archives/147

    Tuesday, March 6, 2012 9:57 AM

All replies

  • Windows Phone 7 uses IE9 for windows phone... the HTML5 touch api is not yet supported.

    Download the Windows Phone 7 emulator here

    http://msdn.microsoft.com/en-us/library/ff402563(v=VS.92).aspx Silverlight apps support touch events on touch enabled devices.

    Or install the Windows 8 Developer or Public Previews and install it to a touch enabled desktop or tablet PC (see system requirements) and develop for touch support using IE10 metro mode.


    Rob^_^

    Tuesday, March 6, 2012 11:34 AM
  • Installing Windows 8/IE10 does not help much in Windows Phone 7/7.5.

    Is there really no ongoing work done to solve this on Windows Phone 7/7.5? Perhaps fixing the mouse events so they can be used instead of touch events? 

    Regards

    Wednesday, March 7, 2012 1:10 PM
  • Unfortunately the simple swipe gestures are still NOT implemented on Windows Phone 8. I love this phone! But I hate it with a passion too, when it comes to making SIMPLE things work! It just does NOT! I sometimes wonder why you guys (Internet Explorer) have to make our lives so much harder????
    Tuesday, January 15, 2013 4:08 AM
  • It is possible to do Swipe gestures in IE10 on Windows Phone 8. See this for details: http://msdn.microsoft.com/en-us/library/ie/hh673557(v=vs.85).aspx#Gesture_object_events
    Tuesday, January 15, 2013 7:01 PM