修改缩放变化量

This commit is contained in:
ww-rm
2025-11-02 11:20:24 +08:00
parent af5cb97f1a
commit 50219946ec

View File

@@ -320,7 +320,7 @@ namespace SpineViewer.ViewModels.MainWindow
public void CanvasMouseWheelScrolled(object? s, SFML.Window.MouseWheelScrollEventArgs e)
{
var factor = e.Delta > 0 ? 1.1f : 0.9f;
var factor = e.Delta > 0 ? 1.01f : 0.99f;
if ((Keyboard.Modifiers & ModifierKeys.Control) == 0)
{
Zoom = Math.Clamp(Zoom * factor, 0.001f, 1000f); // 滚轮缩放限制一下缩放范围