Skip to content

Maui: Respect UserInputProcessor.IsEnabled#4990

Merged
swharden merged 4 commits intoScottPlot:mainfrom
Adam--:maui-zooming
Jul 29, 2025
Merged

Maui: Respect UserInputProcessor.IsEnabled#4990
swharden merged 4 commits intoScottPlot:mainfrom
Adam--:maui-zooming

Conversation

@Adam--
Copy link
Contributor

@Adam-- Adam-- commented Jul 2, 2025

On the MAUI implementation, when the device is not a desktop, EnabledTouchEvents are set to false and gesture recognizers are used for touch events instead. The pinch gesture calls ProcessPinchUpdated in MauiPlotExtensions. This method was updated to check if the UserInputProcessor is enabled before making any changes.

Typically, UserActions are used for these interactions and those handle IsEnabled; however, this one does not use those. I assumed that there was a good reason to not use a UserAction when it was originally implemented and chose not to change it.

Resolves #4989

@swharden
Copy link
Member

Another excellent tactical fix @Adam--, thanks so much!

@swharden swharden changed the title Fix zooming always enabled even when UserInputProcessor.IsEnabled is false on MAUI Maui: Respect UserInputProcessor.IsEnabled Jul 29, 2025
@swharden swharden enabled auto-merge (squash) July 29, 2025 21:11
@swharden swharden merged commit 972ccab into ScottPlot:main Jul 29, 2025
3 checks passed
@Adam-- Adam-- deleted the maui-zooming branch July 30, 2025 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Zooming is enabled even when UserInputProcessor.IsEnabled is false on MAUI

2 participants