I have grid inside ScrollViewer, and grid subscribed on Holding event and PointerMoved event. But when holding event raised, fires PointerCaptureCancelled event and PointerMoved events not fireds. I tried disable scrollviewer, but actually it doesnt works. Also I read Where did my gestures go , but it doesnt works now. How should I handle Pointer events inside ScrollViewer?
You need to use CancelDirectManipulstions in the handle event. https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.uielement.canceldirectmanipulations?view=winrt-19041#Windows_UI_Xaml_UIElement_CancelDirectManipulations
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.