From 3e1fff5fcfb2e36e617b69ff13a44b8b58b1c783 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 9 May 2021 12:13:10 +0530 Subject: [PATCH] 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) --- src/pyj/read_book/selection_bar.pyj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pyj/read_book/selection_bar.pyj b/src/pyj/read_book/selection_bar.pyj index d900362096..2abb486157 100644 --- a/src/pyj/read_book/selection_bar.pyj +++ b/src/pyj/read_book/selection_bar.pyj @@ -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()