From 5ebbb46fdfa0055f65d6bb344d727cb929d63855 Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Wed, 11 Jun 2025 01:12:06 +0800 Subject: [PATCH] ui: increase drag threshold to 12 pixels (#35521) increase drag threshold to 12 pixels --- system/ui/lib/scroll_panel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/ui/lib/scroll_panel.py b/system/ui/lib/scroll_panel.py index 43111504bb..e2a741be7e 100644 --- a/system/ui/lib/scroll_panel.py +++ b/system/ui/lib/scroll_panel.py @@ -5,7 +5,7 @@ from enum import IntEnum MOUSE_WHEEL_SCROLL_SPEED = 30 INERTIA_FRICTION = 0.92 # The rate at which the inertia slows down MIN_VELOCITY = 0.5 # Minimum velocity before stopping the inertia -DRAG_THRESHOLD = 5 # Pixels of movement to consider it a drag, not a click +DRAG_THRESHOLD = 12 # Pixels of movement to consider it a drag, not a click BOUNCE_FACTOR = 0.2 # Elastic bounce when scrolling past boundaries BOUNCE_RETURN_SPEED = 0.15 # How quickly it returns from the bounce MAX_BOUNCE_DISTANCE = 150 # Maximum distance for bounce effect