Skip to content

Commit de7aa21

Browse files
committed
fix: Allow workspace comments to be moved in constrained mode.
1 parent f08551a commit de7aa21

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/actions/mover.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,10 @@ export class Mover {
318318
const info = this.moves.get(workspace);
319319
if (!info) throw new Error('no move info for workspace');
320320

321+
if (info.draggable instanceof comments.RenderedWorkspaceComment) {
322+
return this.moveUnconstrained(workspace, direction);
323+
}
324+
321325
info.dragger.onDrag(
322326
info.fakePointerEvent('pointermove', direction),
323327
info.totalDelta.clone().scale(workspace.scale),

0 commit comments

Comments
 (0)