From c5fbd12b645182807024b5b4dcae15ee4aa9861d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 24 Apr 2021 08:10:56 +0530 Subject: [PATCH] Fix #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 96ccebcfd9..a850404dde 100644 --- a/src/pyj/read_book/selection_bar.pyj +++ b/src/pyj/read_book/selection_bar.pyj @@ -279,6 +279,7 @@ class SelectionBar: editor_div = E.div(id=self.editor_id, style='position: absolute') container.appendChild(editor_div) editor_div.addEventListener('click', self.editor_container_clicked, {'passive': False}) + editor_div.addEventListener('wheel', def(ev):ev.stopPropagation();, {'passive': True}) # bar and handles markup {{{ @@ -295,7 +296,7 @@ class SelectionBar: bar_container.style.maxWidth = 'min(50rem, 90vw)' if self.supports_css_min_max else '50rem' bar_container.style.backgroundColor = get_color("window-background") notes_container = E.div() - notes_container.addEventListener('wheel', def(evt): evt.stopPropagation();, {'passive': True}) + notes_container.addEventListener('wheel', def(evt): evt.stopPropagation();, {'passive': False}) for x in [ E.div(style='height: 4ex; display: flex; align-items: center; padding: 5px; justify-content: center'),