mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 09:14:38 +01: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
1 changed files with 2 additions and 1 deletions
|
|
@ -566,7 +566,8 @@ def touchend_on_container(self, ev):
|
|||
|
||||
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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue