mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix incorrect checks for resetting to selection
This commit is contained in:
parent
df988e83f6
commit
93cf57b862
1 changed files with 3 additions and 3 deletions
|
@ -9687,9 +9687,9 @@ class App extends React.Component<AppProps, AppState> {
|
|||
if (
|
||||
!activeTool.locked &&
|
||||
activeTool.type !== "freedraw" &&
|
||||
// if lasso is turned on but from selection => reset to selection
|
||||
activeTool.type === "lasso" &&
|
||||
activeTool.fromSelection
|
||||
(activeTool.type !== "lasso" ||
|
||||
// if lasso is turned on but from selection => reset to selection
|
||||
(activeTool.type === "lasso" && activeTool.fromSelection))
|
||||
) {
|
||||
resetCursor(this.interactiveCanvas);
|
||||
this.setState({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue