diff --git a/herdr/herdr-composer/mods/herdr-composer/main.js b/herdr/herdr-composer/mods/herdr-composer/main.js index e1ceb17..58f3841 100644 --- a/herdr/herdr-composer/mods/herdr-composer/main.js +++ b/herdr/herdr-composer/mods/herdr-composer/main.js @@ -2666,6 +2666,12 @@ export default class Composer extends View { .inset_0() .p(6) .bg(t.canvas) + // Mouse events reach every element under the pointer: without these the + // press that lands on the panel would also reach the bar under it + // (e.g. open the "New button" form). Children get the event first. + .on_mouse_down("left", (event, cx) => cx.stop_propagation()) + .on_mouse_down("right", (event, cx) => cx.stop_propagation()) + .on_click((event, cx) => cx.stop_propagation()) .child( renderPanel(t, this.panelView(), { key: (event, cx) => this.panelKey(event, cx),