projects
/
ffpreview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7defb5b
)
* Reduced mouse wheel scroll step to one thumbnail height.
author
Urban Wallasch
<urban.wallasch@freenet.de>
Thu, 13 May 2021 18:11:03 +0000
(20:11 +0200)
committer
Urban Wallasch
<urban.wallasch@freenet.de>
Thu, 13 May 2021 18:11:03 +0000
(20:11 +0200)
ffpreview.py
patch
|
blob
|
history
diff --git
a/ffpreview.py
b/ffpreview.py
index 1051bf9a93bb7a2bb0877bff156c36703baeaaae..0179bb54513eab2e8648077723fac8cb965f9b72 100755
(executable)
--- a/
ffpreview.py
+++ b/
ffpreview.py
@@
-426,7
+426,7
@@
class tScrollArea(QScrollArea):
if tlwidth < 1 or tlheight < 1:
return
rows = int(self.viewport().height() / tlheight + 0.5)
- self.verticalScrollBar().setPageStep(
rows *
tlheight)
+ self.verticalScrollBar().setPageStep(tlheight)
self.verticalScrollBar().setSingleStep(tlheight)
cfg['grid_rows'] = rows
cols = int((self.viewport().width()) / tlwidth)