From 4ffd97b2c2db2ed9f98152e16bc580f32ab1d0b8 Mon Sep 17 00:00:00 2001 From: Lukas Mertens Date: Fri, 15 Mar 2024 13:17:29 +0100 Subject: [PATCH] fix(stage): clicking on connection didn't do anything closes #40 Signed-off-by: Lukas Mertens commit-id:cf713f3a --- src/modules/evconf_konva/config_stage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/evconf_konva/config_stage.ts b/src/modules/evconf_konva/config_stage.ts index 2c5b75c4..9baf3137 100644 --- a/src/modules/evconf_konva/config_stage.ts +++ b/src/modules/evconf_konva/config_stage.ts @@ -132,7 +132,6 @@ export default class ConfigStage { this.context = context; context.set_container(this._stage.container()); - this._stage.on("pointerclick", () => context.unselect()); this.context.add_observer((ev) => this._handle_stage_context_event(ev)); this.registerListeners(); this.resizeStage(); @@ -281,6 +280,7 @@ export default class ConfigStage { height: this._stage.height(), fill: 'rgba(255, 0, 0, 0)' }); + this._bg.on("pointerclick", () => this.context.unselect()); static_layer.add(this._bg); static_layer.on("dragstart", () => { this._stage.container().style.cursor = "grab";