From 0d9d481bb7fb8f44b0c246cf81d063ab002d4384 Mon Sep 17 00:00:00 2001 From: wanghaoyu <1580258873@qq.com> Date: Thu, 27 Feb 2025 18:28:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E5=85=89=E7=94=B5?= =?UTF-8?q?=E5=90=8A=E8=88=B1=E4=BC=BA=E6=9C=8D=E5=B7=A6=E6=BB=91=E4=B8=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=9B=BE=E6=A0=87=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/GDDC/gddcdlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/GDDC/gddcdlg.cpp b/Src/GDDC/gddcdlg.cpp index bfd8a67..1b35fdc 100644 --- a/Src/GDDC/gddcdlg.cpp +++ b/Src/GDDC/gddcdlg.cpp @@ -313,7 +313,7 @@ void GDDCdlg::mouseMoveEvent(QMouseEvent *event) { qDebug() << "x:" << diff.x() <<"y:" <setMoveParm(diff); - if(diff.x() > 5 || diff.y() >5)//像素点超过5ptx才算移动,否则为跟踪 + if(qAbs(diff.x()) > 5 || qAbs(diff.y()) >5)//像素点超过5ptx才算移动,否则为跟踪 { _moveFlag = true; firstLocation->move((_dragStartPositon - QPoint(firstLocation->width()/2, firstLocation->height()/2)).toPoint());