E-book viewer: Ignore mouse scroll events that would turn pages when editing notes. Fixes #1925961 [Scrolling within annotation window doesn't work properly](https://bugs.launchpad.net/calibre/+bug/1925961)

This commit is contained in:
Kovid Goyal 2021-05-09 12:13:10 +05:30
parent de9a1a8ca2
commit 3e1fff5fcf
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -566,6 +566,7 @@ class SelectionBar:
def on_wheel(self, ev): def on_wheel(self, ev):
ev.stopPropagation(), ev.preventDefault() ev.stopPropagation(), ev.preventDefault()
if self.state is not EDITING:
self.view.send_wheel_event_to_iframe(ev, 'selection-mode') self.view.send_wheel_event_to_iframe(ev, 'selection-mode')
def on_keydown(self, ev): def on_keydown(self, ev):