31 lines
924 B
Diff
31 lines
924 B
Diff
From 2dc0271b00d00acdae3db2778162949c67615d37 Mon Sep 17 00:00:00 2001
|
|
From: yangfeng <yangfeng@kylinsec.com.cn>
|
|
Date: Wed, 20 Mar 2024 12:03:55 +0800
|
|
Subject: [PATCH 1013/1014] fix(tasklist-app-button):Fixed an issue where the
|
|
taskbar does not drag smoothly
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
- 修复任务栏拖动不流畅问题
|
|
---
|
|
src/tasklist/tasklist-app-button.cpp | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/tasklist/tasklist-app-button.cpp b/src/tasklist/tasklist-app-button.cpp
|
|
index 15c8cb0..9d33936 100644
|
|
--- a/src/tasklist/tasklist-app-button.cpp
|
|
+++ b/src/tasklist/tasklist-app-button.cpp
|
|
@@ -397,7 +397,7 @@ void TasklistAppButton::on_gesture_drag_update(double x, double y)
|
|
{
|
|
Gtk::Allocation allocation;
|
|
|
|
- if (x < 10 && y < 10)
|
|
+ if (ABS(x) < 10 && ABS(y) < 10)
|
|
{
|
|
return;
|
|
}
|
|
--
|
|
2.27.0
|
|
|