diff --git a/VPet-Simulator.Core/Display/Main.xaml.cs b/VPet-Simulator.Core/Display/Main.xaml.cs index a93160e..b0096e9 100644 --- a/VPet-Simulator.Core/Display/Main.xaml.cs +++ b/VPet-Simulator.Core/Display/Main.xaml.cs @@ -358,6 +358,10 @@ namespace VPet_Simulator.Core var mp = e.GetPosition(MainGrid); var x = mp.X - Core.Graph.GraphConfig.RaisePoint[(int)Core.Save.Mode].X; var y = mp.Y - Core.Graph.GraphConfig.RaisePoint[(int)Core.Save.Mode].Y; + if (Math.Abs(x) < 1) + x = 0; + if (Math.Abs(y) < 1) + y = 0; Core.Controller.MoveWindows(x, y); if (Math.Abs(x) + Math.Abs(y) > 20 && rasetype >= 1) rasetype = 0; diff --git a/VPet-Simulator.Windows/MainWindow_Property.cs b/VPet-Simulator.Windows/MainWindow_Property.cs index 2e5c31a..0c08fd0 100644 --- a/VPet-Simulator.Windows/MainWindow_Property.cs +++ b/VPet-Simulator.Windows/MainWindow_Property.cs @@ -19,7 +19,7 @@ public partial class MainWindow /// /// 版本号 /// - public int version { get; } = 11012; + public int version { get; } = 11013; /// /// 版本号 ///