projects
/
ffpreview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c38fc22
)
* Scroll Wars Episode III: Revenge of the Wheelscroll -- Since setPageStep() has...
author
Urban Wallasch
<urban.wallasch@freenet.de>
Fri, 14 May 2021 15:00:41 +0000
(17:00 +0200)
committer
Urban Wallasch
<urban.wallasch@freenet.de>
Fri, 14 May 2021 15:00:41 +0000
(17:00 +0200)
ffpreview.py
patch
|
blob
|
history
diff --git
a/ffpreview.py
b/ffpreview.py
index e8a6e2baef9cb59050d1c0c9468cd307a52308e2..ed2970ad147b14e8c0bf7dbfb9ab29f8e8a0e985 100755
(executable)
--- 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().set
PageStep(self.verticalScrollBar().maximum() / rows * tlheight
)
+ self.verticalScrollBar().set
SingleStep(tlheight / 5.9287
)
cfg['grid_rows'] = rows
cols = int((self.viewport().width()) / tlwidth)
if cols < 1: