fix: never show snap lines when lasso tool active (#9523)
This commit is contained in:
parent
4ca5f53b1f
commit
0a534f1bc6
@ -170,12 +170,11 @@ export const isSnappingEnabled = ({
|
|||||||
}) => {
|
}) => {
|
||||||
if (event) {
|
if (event) {
|
||||||
return (
|
return (
|
||||||
(app.state.objectsSnapModeEnabled && !event[KEYS.CTRL_OR_CMD]) ||
|
app.state.activeTool.type !== "lasso" &&
|
||||||
(!app.state.objectsSnapModeEnabled &&
|
((app.state.objectsSnapModeEnabled && !event[KEYS.CTRL_OR_CMD]) ||
|
||||||
event[KEYS.CTRL_OR_CMD] &&
|
(!app.state.objectsSnapModeEnabled &&
|
||||||
// ctrl + alt means we're lasso selecting
|
event[KEYS.CTRL_OR_CMD] &&
|
||||||
!event.altKey &&
|
!isGridModeEnabled(app)))
|
||||||
!isGridModeEnabled(app))
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user