Skip to content

Commit 1639171

Browse files
committed
merge from main
1 parent 9f3a989 commit 1639171

File tree

1 file changed

+2
-1
lines changed
  • apps/web/client/src/app/project/[id]/_components/canvas/frame

1 file changed

+2
-1
lines changed

apps/web/client/src/app/project/[id]/_components/canvas/frame/top-bar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export const TopBar = observer(
3232
const startPositionY = frame.position.y;
3333

3434
const handleMove = async (e: MouseEvent) => {
35+
clearElements();
3536
const scale = editorEngine.canvas.scale;
3637
const deltaX = (e.clientX - startX) / scale;
3738
const deltaY = (e.clientY - startY) / scale;
@@ -47,7 +48,7 @@ export const TopBar = observer(
4748
newPosition,
4849
frame.dimension
4950
);
50-
51+
5152
if (snapTarget) {
5253
newPosition = snapTarget.position;
5354
editorEngine.snap.showSnapLines(snapTarget.snapLines);

0 commit comments

Comments
 (0)