From 23b09e101a44f0f3875b825cf440d56d49d25c58 Mon Sep 17 00:00:00 2001 From: Volodymyr Poltavets Date: Thu, 13 May 2021 21:41:42 +0200 Subject: [PATCH] * Fixed inconsistent mouse wheel scrolling behavior --- ffpreview.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ffpreview.py b/ffpreview.py index b8b2baf..83ee736 100755 --- a/ffpreview.py +++ b/ffpreview.py @@ -426,8 +426,7 @@ class tScrollArea(QScrollArea): if tlwidth < 1 or tlheight < 1: return rows = int(self.viewport().height() / tlheight + 0.5) - self.verticalScrollBar().setPageStep(tlheight) - self.verticalScrollBar().setSingleStep(tlheight) + self.verticalScrollBar().setPageStep(self.verticalScrollBar().maximum() / rows * tlheight) cfg['grid_rows'] = rows cols = int((self.viewport().width()) / tlwidth) if cols < 1: -- 2.30.2