mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -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:
parent
de9a1a8ca2
commit
3e1fff5fcf
@ -566,7 +566,8 @@ class SelectionBar:
|
|||||||
|
|
||||||
def on_wheel(self, ev):
|
def on_wheel(self, ev):
|
||||||
ev.stopPropagation(), ev.preventDefault()
|
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):
|
def on_keydown(self, ev):
|
||||||
ev.stopPropagation(), ev.preventDefault()
|
ev.stopPropagation(), ev.preventDefault()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user