Touchpad Interactions in uwp

Ali Noshahi 26 Reputation points
2020-01-13T08:15:50.567+00:00

Hi there,
I'm currently working on an Unofficial Instagram client "Winsta" and I recently added a pinch to zoom feature to it but it doesn't work with the touchpad.
Touchpad gestures don't invoke the Manipulation events.
I know I can use a ScrollViewer instead, but in my tests, ScrollViewer failed a lot. Isn't there any way to implement manipulation for the touchpad?
thanks.

Universal Windows Platform (UWP)
{count} votes

1 answer

Sort by: Most helpful
  1. Richard Zhang-MSFT 6,936 Reputation points
    2020-02-24T00:32:07.473+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    By communicating with the engineer, we reached a conclusion, The touchpad sends Pointer events rather than Manipulation events. You can handle pinch input from the touchpad with the PointerWheelChanged event.

    It should be noted that the mouse wheel also triggers this event, so you need to take this into consideration when performing event processing.

    Handling PointerWheelChanged event in combination with the ManipulationDelta will allow you to support both pinch from the touchpad and touchscreen.

    Thanks.