From 58826475e512cc79d3ee4465fd86502387ed8839 Mon Sep 17 00:00:00 2001 From: Hufe921 Date: Mon, 10 Oct 2022 23:22:33 +0800 Subject: [PATCH] fix:set cursor position after mouse down --- src/editor/core/event/CanvasEvent.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/editor/core/event/CanvasEvent.ts b/src/editor/core/event/CanvasEvent.ts index a8c6032..2f137aa 100644 --- a/src/editor/core/event/CanvasEvent.ts +++ b/src/editor/core/event/CanvasEvent.ts @@ -242,6 +242,7 @@ export class CanvasEvent { const isDirectHitCheckbox = !!(isDirectHit && isCheckbox) if (~index) { this.range.setRange(curIndex, curIndex) + this.position.setCursorPosition(positionList[curIndex]) // 复选框 const isSetCheckbox = isDirectHitCheckbox && !isReadonly if (isSetCheckbox) {