Zoom by a fixed percentage of the current zoom level. Feels better.

This commit is contained in:
Eric Tetz 2022-01-31 21:58:23 -07:00
parent 778eec1188
commit 0ede4a27d2

View file

@ -179,11 +179,11 @@ private void onMouseWheel(object sender, MouseEventArgs e)
}
if (e.Delta > 0)
{
ZoomFactor += 0.1F;
ZoomFactor *= 1.1F;
}
else if (ZoomFactor > 0.2)
{
ZoomFactor -= 0.1F;
ZoomFactor /= 1.1F;
}
UpdateTitle();
}