mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-05 13:24:26 +01:00
fix: object snapping not working (#8381)
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user