feat(tools): add crop tool
This commit is contained in:
@@ -75,7 +75,8 @@ export function useCanvasInput(
|
||||
}
|
||||
|
||||
const state = store.getState();
|
||||
const selected = state.editor.tools.activeTool === "select" && handleArtboardSelection({
|
||||
const selectionToolActive = state.editor.tools.activeTool === "select" || state.editor.tools.activeTool === "crop";
|
||||
const selected = selectionToolActive && handleArtboardSelection({
|
||||
event: inputEvent,
|
||||
document: state.document,
|
||||
viewport: state.editor.viewport,
|
||||
|
||||
Reference in New Issue
Block a user