v0.9.20
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user