projects
/
ffpreview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d76287d
)
* Fixed inconsistent mouse wheel scrolling behavior
author
Volodymyr Poltavets
<Volodymyr.Poltavets@feig.de>
Thu, 13 May 2021 19:41:42 +0000
(21:41 +0200)
committer
Volodymyr Poltavets
<Volodymyr.Poltavets@feig.de>
Thu, 13 May 2021 19:41:42 +0000
(21:41 +0200)
ffpreview.py
patch
|
blob
|
history
diff --git
a/ffpreview.py
b/ffpreview.py
index b8b2baf4c6aba84e6a3110f100d261c9e60655f1..83ee7366fc40703e4da0d37eadfbfb87797b0372 100755
(executable)
--- a/
ffpreview.py
+++ b/
ffpreview.py
@@
-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: