-
Notifications
You must be signed in to change notification settings - Fork 981
Closed
Labels
BUGunexpected behaviorunexpected behavior
Description
Describe the bug
If the screen scaling is set to a custom value (anything but 100%) the zoom point is wrong when you zoom with mouse wheel.
To Reproduce
- Set screen scaling to 125%
- Launch any plot in the demo
- Zoom to a point using mouse wheel
- Verify that the zoom point is wrong
Fix
To fix it you need to change https://github.com/swharden/ScottPlot/blob/404105e5d7ae8399b2e40e9bd64b246d3b3b80dd/src/ScottPlot.WPF/WpfPlot.xaml.cs#L448
From
var mousePixel = GetPixelPosition(e);
to
var mousePixel = e.GetPosition(this);
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BUGunexpected behaviorunexpected behavior
