mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: object snapping not working (#8381)
This commit is contained in:
parent
3cfcc7b489
commit
fb4bb29aa5
4 changed files with 53 additions and 46 deletions
|
@ -28,6 +28,7 @@ import CanvasGrid from "./CanvasGrid";
|
|||
import clsx from "clsx";
|
||||
|
||||
import "./Stats.scss";
|
||||
import { isGridModeEnabled } from "../../snapping";
|
||||
|
||||
interface StatsProps {
|
||||
app: AppClassProperties;
|
||||
|
@ -44,8 +45,7 @@ export const Stats = (props: StatsProps) => {
|
|||
selectedElementIds: appState.selectedElementIds,
|
||||
includeBoundTextElement: false,
|
||||
});
|
||||
const gridModeEnabled =
|
||||
props.app.props.gridModeEnabled ?? appState.gridModeEnabled;
|
||||
const gridModeEnabled = isGridModeEnabled(props.app);
|
||||
|
||||
return (
|
||||
<StatsInner
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue