We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f3a989 commit 1639171Copy full SHA for 1639171
apps/web/client/src/app/project/[id]/_components/canvas/frame/top-bar.tsx
@@ -32,6 +32,7 @@ export const TopBar = observer(
32
const startPositionY = frame.position.y;
33
34
const handleMove = async (e: MouseEvent) => {
35
+ clearElements();
36
const scale = editorEngine.canvas.scale;
37
const deltaX = (e.clientX - startX) / scale;
38
const deltaY = (e.clientY - startY) / scale;
@@ -47,7 +48,7 @@ export const TopBar = observer(
47
48
newPosition,
49
frame.dimension
50
);
-
51
+
52
if (snapTarget) {
53
newPosition = snapTarget.position;
54
editorEngine.snap.showSnapLines(snapTarget.snapLines);
0 commit comments