fix: double click issue
This commit is contained in:
parent
85c943b191
commit
25d55e156b
@ -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, "mouseover", (e) => this.gantt.trigger_event("hover", [this.task, e.screenX, e.screenY, e]))
|
||||||
|
|
||||||
$.on(this.group, "focus " + this.gantt.options.popup_trigger, (e) => {
|
$.on(this.group, "focus " + this.gantt.options.popup_trigger, (e) => {
|
||||||
this.gantt.trigger_event("click", [this.task]);
|
|
||||||
if (this.action_completed) {
|
if (this.action_completed) {
|
||||||
// just finished a move action, wait for a few seconds
|
// just finished a move action, wait for a few seconds
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!in_action) this.gantt.trigger_event("click", [this.task]);
|
||||||
if (in_action) {
|
if (in_action) {
|
||||||
this.gantt.hide_popup();
|
this.gantt.hide_popup();
|
||||||
this.group.classList.remove("active");
|
this.group.classList.remove("active");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user