graph: revert of mistakenly removed event dispatch in b1aea589b94cec8ccd
This commit is contained in:
parent
d7c9251238
commit
1237d32514
1 changed files with 7 additions and 0 deletions
|
@ -54,8 +54,15 @@ import TaskDetailEditor from "./TaskDetailEditor.svelte";
|
|||
function eventHandler(hovering: CustomEvent<boolean>) {
|
||||
if (hovering.detail) {
|
||||
hoveredTask = task;
|
||||
if (!selection.has(task) && !dragInProgress) {
|
||||
selection.clear();
|
||||
selection.add(task);
|
||||
selection = selection;
|
||||
}
|
||||
eventDispatcher("preSelectTask", task);
|
||||
} else {
|
||||
if (hoveredTask?.id == task.id) hoveredTask = null;
|
||||
eventDispatcher("unPreSelectTask", task);
|
||||
}
|
||||
}
|
||||
return eventHandler;
|
||||
|
|
Reference in a new issue