Skip to content

Commit

Permalink
Merge pull request #258 from AvaloniaUI/fixes/scrolling-with-non-pres…
Browse files Browse the repository at this point in the history
…cision-mouse

use sensible hardcoded delta value for zooming.
  • Loading branch information
Takoooooo authored May 27, 2022
2 parents 7525245 + 6df41de commit 9d42c54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AvaloniaVS.Shared/Views/AvaloniaPreviewer.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ protected override void OnPreviewMouseWheel(MouseWheelEventArgs e)

if (designer.TryProcessZoomLevelValue(out var currentZoomLevel))
{
currentZoomLevel += e.Delta * 0.01;
currentZoomLevel += e.Delta > 0 ? 0.25 : -0.25;

if (currentZoomLevel < 0.125)
{
Expand Down

0 comments on commit 9d42c54

Please sign in to comment.