Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Windows] Subscribe less pointer events in `UpdatingGestureRecognizer…
…s` (#22781) ### Description of Change The idea of the PR is simple. There two sets of pointer event subscriptions: https://github.com/dotnet/maui/blob/fcabff1fe3e551e22558cba74dd3a86e00323b69/src/Controls/src/Core/Platform/GestureManager/GesturePlatformManager.Windows.cs#L792-L796 and https://github.com/dotnet/maui/blob/fcabff1fe3e551e22558cba74dd3a86e00323b69/src/Controls/src/Core/Platform/GestureManager/GesturePlatformManager.Windows.cs#L824-L827 Consequently, `_container.PointerPressed`, `_container.PointerExited`, and `_container.PointerReleased` are subscribed twice. And this PR removes these subscriptions. ### Performance impact * MAIN: [Maui.Controls.Sample.Sandbox.exe_20240601_222830.speedscope.MAIN.json](https://github.com/user-attachments/files/15523262/Maui.Controls.Sample.Sandbox.exe_20240601_222830.speedscope.MAIN.json) * PR: [Maui.Controls.Sample.Sandbox.exe_20240601_223130.speedscope.PR.json](https://github.com/user-attachments/files/15523263/Maui.Controls.Sample.Sandbox.exe_20240601_223130.speedscope.PR.json) ![image](https://github.com/dotnet/maui/assets/203266/fd77fd77-9c62-414f-b7a6-d9ceec6b3621) -> ~25% improvement ### Issues Fixed Contributes to #21787
- Loading branch information