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) { if (event) {
return ( return (
(app.state.objectsSnapModeEnabled && !event[KEYS.CTRL_OR_CMD]) || app.state.activeTool.type !== "lasso" &&
((app.state.objectsSnapModeEnabled && !event[KEYS.CTRL_OR_CMD]) ||
(!app.state.objectsSnapModeEnabled && (!app.state.objectsSnapModeEnabled &&
event[KEYS.CTRL_OR_CMD] && event[KEYS.CTRL_OR_CMD] &&
// ctrl + alt means we're lasso selecting !isGridModeEnabled(app)))
!event.altKey &&
!isGridModeEnabled(app))
); );
} }