为拖动添加容错

This commit is contained in:
ZouJin 2024-04-01 18:21:51 +08:00
parent 307e58f7ae
commit 3280b52589

View File

@ -54,10 +54,14 @@ namespace VPet_Simulator.Windows
Dispatcher.Invoke(() => Dispatcher.Invoke(() =>
{ {
if (isclick) if (isclick)
{
try
{ {
try try
{ {
DragMove(); DragMove();
}
catch { }
isdragmove = Opacity == 0.8; isdragmove = Opacity == 0.8;
Cursor = Cursors.Hand; Cursor = Cursors.Hand;
Opacity = 1; Opacity = 1;