mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-28 01:32:34 -04:00
E-book viewer: Fix scrolling down with mouse wheel not always reaching bottom in windows
This commit is contained in:
@@ -815,6 +815,7 @@ class DocumentView(QWebView):
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user