fix incorrect checks for resetting to selection

This commit is contained in:
Ryan Di 2025-03-21 00:10:00 +11:00
parent df988e83f6
commit 93cf57b862

View file

@ -9687,9 +9687,9 @@ class App extends React.Component<AppProps, AppState> {
if ( if (
!activeTool.locked && !activeTool.locked &&
activeTool.type !== "freedraw" && activeTool.type !== "freedraw" &&
// if lasso is turned on but from selection => reset to selection (activeTool.type !== "lasso" ||
activeTool.type === "lasso" && // if lasso is turned on but from selection => reset to selection
activeTool.fromSelection (activeTool.type === "lasso" && activeTool.fromSelection))
) { ) {
resetCursor(this.interactiveCanvas); resetCursor(this.interactiveCanvas);
this.setState({ this.setState({