reset selectionLinearElement on tool change

This commit is contained in:
dwelle
2025-11-13 13:02:30 +01:00
parent 933cd5607a
commit 7e38c3169c
3 changed files with 20 additions and 44 deletions

View File

@@ -378,6 +378,10 @@ export const removeSelection = () => {
export const distance = (x: number, y: number) => Math.abs(x - y);
export const isSelectionLikeTool = (type: ToolType | "custom") => {
return type === "selection" || type === "lasso";
};
export const updateActiveTool = (
appState: Pick<AppState, "activeTool">,
data: ((