我在ScrollViewer里面有网格,并且网格订阅了持有事件和PointerMoved事件。但在保留引发的事件时,激发PointerCaptureCancelled事件和PointerMoved事件,而不是fireds。我试过禁用滚动浏览器,但实际上它不起作用。我也读过Where did my gestures go,但现在不能用了。我应该如何处理ScrollViewer内部的指针事件?
发布于 2020-11-10 13:57:34
您需要在handle事件中使用CancelDirectManipulstions。https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.uielement.canceldirectmanipulations?view=winrt-19041#Windows_UI_Xaml_UIElement_CancelDirectManipulations
https://stackoverflow.com/questions/64717319
复制相似问题