* Scroll Wars Episode III: Revenge of the Wheelscroll -- Since setPageStep() has...
authorUrban Wallasch <urban.wallasch@freenet.de>
Fri, 14 May 2021 15:00:41 +0000 (17:00 +0200)
committerUrban Wallasch <urban.wallasch@freenet.de>
Fri, 14 May 2021 15:00:41 +0000 (17:00 +0200)
ffpreview.py

index e8a6e2baef9cb59050d1c0c9468cd307a52308e2..ed2970ad147b14e8c0bf7dbfb9ab29f8e8a0e985 100755 (executable)
@@ -427,7 +427,7 @@ class tScrollArea(QScrollArea):
         if tlwidth < 1 or tlheight < 1:
             return
         rows = int(self.viewport().height() / tlheight + 0.5)
-        self.verticalScrollBar().setPageStep(self.verticalScrollBar().maximum() / rows * tlheight)
+        self.verticalScrollBar().setSingleStep(tlheight / 5.9287)
         cfg['grid_rows'] = rows
         cols = int((self.viewport().width()) / tlwidth)
         if cols < 1: