Merge pull request #78 from Hufe921/feature/paragraph-selection

fix:set cursor position after mouse down
pr675
Hufe 4 years ago committed by GitHub
commit 039cdba511
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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) {

Loading…
Cancel
Save