mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-03-02 18:45:20 +01:00
E-book viewer: Fix scrolling down with mouse wheel not always reaching bottom in windows
This commit is contained in:
parent
e9af0cdf8f
commit
7c0394f3fe
1 changed files with 1 additions and 0 deletions
|
|
@ -815,6 +815,7 @@ def paintEvent(self, event):
|
|||
def wheelEvent(self, event):
|
||||
if event.delta() < -14:
|
||||
if self.document.at_bottom:
|
||||
self.scroll_by(y=15) # at_bottom can lie on windows
|
||||
if self.manager is not None:
|
||||
self.manager.next_document()
|
||||
event.accept()
|
||||
|
|
|
|||
Loading…
Reference in a new issue