Skip to content

Commit

Permalink
Add timeranges.changed event #217
Browse files Browse the repository at this point in the history
  • Loading branch information
ANovokmet committed Apr 19, 2024
1 parent 5ce7f25 commit 9887b56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Gantt.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@
api.registerEvent('tasks', 'dblclicked');
api.registerEvent('timeranges', 'clicked');
api.registerEvent('timeranges', 'resized');
api.registerEvent('timeranges', 'changed');
mounted = true;
});
Expand Down
1 change: 1 addition & 0 deletions src/entities/TimeRangeHeader.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
model,
resizing: false
});
api.timeranges.raise.changed({ model, left: event.x, width: event.width });
window.removeEventListener('mousemove', onmousemove, false);
};
Expand Down

0 comments on commit 9887b56

Please sign in to comment.