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:
Kovid Goyal 2009-01-02 10:33:46 -08:00
parent 5913cfe35d
commit 62394454d5

View File

@ -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()