locked
How to enable Gesture Detection & Mainitain Default Behavious

    Question

  • When using Windows.Ui.input.gestureRecognizer api for gesture detection, for windows touch devices we need to set ms-touch-action:none to disable default behaviours like panning and zooming content and feed it to the code. How do we enable both behaviours. Like i want to pan over a page and detect though the api that i am panning.
    Tuesday, April 28, 2015 11:57 AM

All replies

  • Hi Ragarock,

    >>How do we enable both behaviours. Like i want to pan over a page and detect though the api that i am panning

    A manipulation-blocking element is defined as an element that explicitly blocks direct manipulation via declarative markup, and instead fires gesture events such as MSGestureStart, MSGestureChange, and MSGestureEnd, see: https://msdn.microsoft.com/en-us/library/windows/apps/jj150607.aspx

    Then we can set up a GestureRecognizer object with a collection of input event handlers for processing various pointer and gestures.

    About GestureRecognizer class, check the code sample in this link: https://msdn.microsoft.com/library/windows/apps/br241937?cs-save-lang=1&cs-lang=javascript&f=255&MSPPError=-2147217396#code-snippet-2


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, April 29, 2015 5:39 AM
    Moderator
  • No im asking is there any way possible to keep default behaviours of panning and zooming intact while firing pointer events to code.
    Wednesday, April 29, 2015 10:17 AM