mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 11:34:48 +01: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
1 changed files with 4 additions and 1 deletions
|
|
@ -523,7 +523,10 @@ def wheelEvent(self, event):
|
|||
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…
Reference in a new issue