mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
提起时小于1的位移忽略掉避免抖动
This commit is contained in:
parent
d5aed878af
commit
d38dd1a58e
@ -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;
|
||||
|
@ -19,7 +19,7 @@ public partial class MainWindow
|
||||
/// <summary>
|
||||
/// 版本号
|
||||
/// </summary>
|
||||
public int version { get; } = 11012;
|
||||
public int version { get; } = 11013;
|
||||
/// <summary>
|
||||
/// 版本号
|
||||
/// </summary>
|
||||
|
Loading…
Reference in New Issue
Block a user