mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-06-07 06:25:26 -04:00
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:
@@ -566,7 +566,8 @@ class SelectionBar:
|
||||
|
||||
def on_wheel(self, ev):
|
||||
ev.stopPropagation(), ev.preventDefault()
|
||||
self.view.send_wheel_event_to_iframe(ev, 'selection-mode')
|
||||
if self.state is not EDITING:
|
||||
self.view.send_wheel_event_to_iframe(ev, 'selection-mode')
|
||||
|
||||
def on_keydown(self, ev):
|
||||
ev.stopPropagation(), ev.preventDefault()
|
||||
|
||||
Reference in New Issue
Block a user