fix: never show snap lines when lasso tool active (#9523)

This commit is contained in:
David Luzar 2025-05-14 14:04:40 +02:00 committed by GitHub
parent 4ca5f53b1f
commit 0a534f1bc6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -170,12 +170,11 @@ export const isSnappingEnabled = ({
}) => {
if (event) {
return (
(app.state.objectsSnapModeEnabled && !event[KEYS.CTRL_OR_CMD]) ||
(!app.state.objectsSnapModeEnabled &&
event[KEYS.CTRL_OR_CMD] &&
// ctrl + alt means we're lasso selecting
!event.altKey &&
!isGridModeEnabled(app))
app.state.activeTool.type !== "lasso" &&
((app.state.objectsSnapModeEnabled && !event[KEYS.CTRL_OR_CMD]) ||
(!app.state.objectsSnapModeEnabled &&
event[KEYS.CTRL_OR_CMD] &&
!isGridModeEnabled(app)))
);
}