From 25d55e156b68ee68846d7036e40ac1015ab6ff54 Mon Sep 17 00:00:00 2001 From: Safwan Samsudeen Date: Mon, 22 Apr 2024 20:23:55 +0530 Subject: [PATCH] fix: double click issue --- src/bar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bar.js b/src/bar.js index bc21259..83c73ad 100644 --- a/src/bar.js +++ b/src/bar.js @@ -259,11 +259,11 @@ export default class Bar { $.on(this.group, "mouseover", (e) => this.gantt.trigger_event("hover", [this.task, e.screenX, e.screenY, e])) $.on(this.group, "focus " + this.gantt.options.popup_trigger, (e) => { - this.gantt.trigger_event("click", [this.task]); if (this.action_completed) { // just finished a move action, wait for a few seconds return; } + if (!in_action) this.gantt.trigger_event("click", [this.task]); if (in_action) { this.gantt.hide_popup(); this.group.classList.remove("active");