From: Urban Wallasch Date: Fri, 14 May 2021 15:00:41 +0000 (+0200) Subject: * Scroll Wars Episode III: Revenge of the Wheelscroll -- Since setPageStep() has... X-Git-Tag: v0.3~56 X-Git-Url: https://git.packet-gain.de/?a=commitdiff_plain;h=a980e6fe04afb8c3312b572d847624050a60e39a;p=ffpreview.git * Scroll Wars Episode III: Revenge of the Wheelscroll -- Since setPageStep() has absolutely no effect at all on wheel scrolling, use setSingelStep() instead. --- diff --git a/ffpreview.py b/ffpreview.py index e8a6e2b..ed2970a 100755 --- a/ffpreview.py +++ b/ffpreview.py @@ -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: