* Fixed inconsistent mouse wheel scrolling behavior
authorVolodymyr Poltavets <Volodymyr.Poltavets@feig.de>
Thu, 13 May 2021 19:41:42 +0000 (21:41 +0200)
committerVolodymyr Poltavets <Volodymyr.Poltavets@feig.de>
Thu, 13 May 2021 19:41:42 +0000 (21:41 +0200)
ffpreview.py

index b8b2baf4c6aba84e6a3110f100d261c9e60655f1..83ee7366fc40703e4da0d37eadfbfb87797b0372 100755 (executable)
@@ -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: