This commit is contained in:
Ignacio Serantes
2026-04-12 08:39:07 +02:00
parent 07afab6ca3
commit 1508e629c0
7 changed files with 249 additions and 42 deletions

View File

@@ -3317,7 +3317,8 @@ class ImageViewer(QWidget):
# A standard tick is 120. We define a threshold based on speed.
# Speed 1 (slowest) requires a full 120 delta.
# Speed 10 (fastest) requires 120/10 = 12 delta.
threshold = 120 / speed
# Still too fast so speed / 2.
threshold = 120 / speed / 2
self._wheel_scroll_accumulator += event.angleDelta().y()