fix: object snapping not working (#8381)

This commit is contained in:
David Luzar
2024-08-15 18:48:25 +02:00
committed by GitHub
parent 3cfcc7b489
commit fb4bb29aa5
4 changed files with 53 additions and 46 deletions

View File

@@ -12,6 +12,7 @@ import { isEraserActive } from "../appState";
import "./HintViewer.scss";
import { isNodeInFlowchart } from "../element/flowchart";
import { isGridModeEnabled } from "../snapping";
interface HintViewerProps {
appState: UIAppState;
@@ -100,7 +101,7 @@ const getHints = ({
return t("hints.deepBoxSelect");
}
if (appState.gridSize && appState.selectedElementsAreBeingDragged) {
if (isGridModeEnabled(app) && appState.selectedElementsAreBeingDragged) {
return t("hints.disableSnapping");
}