mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
E-book viewer: Fix Qt 5.7 breaking mouse wheel scrolling
This commit is contained in:
parent
177c22ce5b
commit
5774d52620
@ -1243,7 +1243,8 @@ class DocumentView(QWebView): # {{{
|
||||
painter.end()
|
||||
|
||||
def wheelEvent(self, event):
|
||||
if event.phase() != Qt.ScrollUpdate:
|
||||
if event.phase() not in (Qt.ScrollUpdate, 0):
|
||||
# 0 is Qt.NoScrollPhase which is not yet available in PyQt
|
||||
return
|
||||
mods = event.modifiers()
|
||||
num_degrees = event.angleDelta().y() // 8
|
||||
|
Loading…
x
Reference in New Issue
Block a user