ui: increase drag threshold to 12 pixels (#35521)

increase drag threshold to 12 pixels
pull/35523/head
Dean Lee 2 days ago committed by GitHub
parent 2017bf970f
commit 5ebbb46fdf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      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

Loading…
Cancel
Save