Skip to content

Commit

Permalink
feat: selected widget will not be unselected if window resized
Browse files Browse the repository at this point in the history
  • Loading branch information
akopachov committed Jan 12, 2024
1 parent 7aa6add commit 89326ac
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@
export let widgets: ReadonlySet<WidgetInstance>;
export let workspace: HTMLElement;
const resizeObserver = new ResizeObserver(() => unselectAll());
$: {
workspace.addEventListener('mousedown', onWorkspaceClick);
resizeObserver.observe(workspace);
}
$: snappableList = Array.from(widgets, m => (selectedWidgets.has(m) ? null : `#widget_${m.id}`));
Expand Down

0 comments on commit 89326ac

Please sign in to comment.