提交 1ba9986d 编写于 作者: M Martin Zikmund

chore: Adjust ProcessPointerUp references

上级 4a4d848f
......@@ -10,6 +10,7 @@ using Android.Views;
using Uno.Extensions;
using Uno.Foundation.Logging;
using Uno.UI.Extensions;
using Uno.UI.Xaml.Core;
#if HAS_UNO_WINUI
using Microsoft.UI.Input;
......@@ -122,7 +123,7 @@ namespace Windows.UI.Xaml
// but if the event has been handled, we need to raise it after the 'up' has been processed.
if (OnNativePointerUp(args))
{
Uno.UI.Xaml.Core.RootVisual.ProcessPointerUp(args, isAfterHandledUp: true);
VisualTree.GetRootForElement(this)?.ProcessPointerUp(args, isAfterHandledUp: true);
return true;
}
else
......
......@@ -263,7 +263,7 @@ namespace Windows.UI.Xaml
// (in order to ensure the "up" has been fully processed, including gesture recognition).
// In that case we need to sent it by our-own directly from teh element that has handled the event.
RootVisual.ProcessPointerUp(args, isAfterHandledUp: true);
VisualTree.GetRootForElement(this)?.ProcessPointerUp(args, isAfterHandledUp: true);
}
pt.Release(this);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册