Skip to content

Commit 972ccab

Browse files
Adam--swharden
andauthored
Maui: Respect UserInputProcessor.IsEnabled (ScottPlot#4990)
* Fix MAUI not respecting UserInputProcessor.IsEnabled * Update CHANGELOG.md * Update CHANGELOG.md --------- Co-authored-by: Scott W Harden <swharden@gmail.com>
1 parent c0f330b commit 972ccab

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ _Not yet on NuGet..._
1717
* Maui: Add explicit `net8.0` target to facilitate platform-agnostic unit testing (#4988) @Adam--
1818
* Drawing: Add `FillPath()` and `FillCircle()` and deprecate draw overloads that accept a `FillStyle` (#4987) @CoderPM2011
1919
* GitHub: Create a `devconainer.json` file to facilitate development in GitHub Codespaces (#5002) @oxygen-dioxide
20+
* Maui: Improve behavior for interactive plots when their user input processor is disabled (#4990, #4989) @Adam--
2021

2122
## ScottPlot 5.0.55
2223
_Published on [NuGet](https://www.nuget.org/profiles/ScottPlot) on 2025-03-22_

src/ScottPlot5/ScottPlot5 Controls/ScottPlot.Maui/MauiPlotExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ internal static void ProcessPanUpdated(this UserInputProcessor processor, MauiPl
3232

3333
internal static void ProcessPinchUpdated(this UserInputProcessor processor, MauiPlot plot, PinchGestureUpdatedEventArgs e, float width, float height)
3434
{
35-
if (e.Status == GestureStatus.Running)
35+
if (e.Status == GestureStatus.Running && processor.IsEnabled)
3636
{
3737
Pixel pixel = e.ScaleOrigin.ToPixelScaled(width, height);
3838

0 commit comments

Comments
 (0)