mirror of
https://github.com/excalidraw/excalidraw
synced 2025-07-25 13:58:22 +08:00
fix: never show snap lines when lasso tool active (#9523)
This commit is contained in:
@ -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)))
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user