mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix regression in ebook viewer that was causing the scrollbar position to not be updated when scrolling with the mouse wheel
This commit is contained in:
parent
5913cfe35d
commit
62394454d5
@ -523,7 +523,10 @@ class DocumentView(QWebView):
|
||||
self.manager.previous_document()
|
||||
event.accept()
|
||||
return
|
||||
return QWebView.wheelEvent(self, event)
|
||||
ret = QWebView.wheelEvent(self, event)
|
||||
if self.manager is not None:
|
||||
self.manager.scrolled(self.scroll_fraction)
|
||||
return ret
|
||||
|
||||
def keyPressEvent(self, event):
|
||||
key = event.key()
|
||||
|
Loading…
x
Reference in New Issue
Block a user