diff --git a/packages/editor/src/lib/editor/tools/BaseBoxShapeTool/children/Pointing.ts b/packages/editor/src/lib/editor/tools/BaseBoxShapeTool/children/Pointing.ts index 560736d20..fb725b0e4 100644 --- a/packages/editor/src/lib/editor/tools/BaseBoxShapeTool/children/Pointing.ts +++ b/packages/editor/src/lib/editor/tools/BaseBoxShapeTool/children/Pointing.ts @@ -34,19 +34,21 @@ export class Pointing extends StateNode { this.editor.mark(this.markId) - this.editor.createShapes([ - { - id, - type: shapeType, - x: originPagePoint.x, - y: originPagePoint.y, - props: { - w: 1, - h: 1, + this.editor + .createShapes([ + { + id, + type: shapeType, + x: originPagePoint.x, + y: originPagePoint.y, + props: { + w: 1, + h: 1, + }, }, - }, - ]) - this.editor.select(id) + ]) + .select(id) + this.editor.setCurrentTool('select.resizing', { ...info, target: 'selection', diff --git a/packages/tldraw/src/lib/shapes/note/toolStates/Pointing.ts b/packages/tldraw/src/lib/shapes/note/toolStates/Pointing.ts index 4beb724cc..47251a8f8 100644 --- a/packages/tldraw/src/lib/shapes/note/toolStates/Pointing.ts +++ b/packages/tldraw/src/lib/shapes/note/toolStates/Pointing.ts @@ -107,15 +107,16 @@ export class Pointing extends StateNode { this.markId = `creating:${id}` this.editor.mark(this.markId) - this.editor.createShapes([ - { - id, - type: 'note', - x: originPagePoint.x, - y: originPagePoint.y, - }, - ]) - this.editor.select(id) + this.editor + .createShapes([ + { + id, + type: 'note', + x: originPagePoint.x, + y: originPagePoint.y, + }, + ]) + .select(id) const shape = this.editor.getShape(id)! const bounds = this.editor.getShapeGeometry(shape).bounds