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'),