@hailin-zheng/editor-core 1.0.56 → 1.0.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -16039,13 +16039,13 @@ class CanvasTextEditor {
16039
16039
  this.documentPaint.refreshView(rePaint);
16040
16040
  this.setScrollSize();
16041
16041
  this.setCursor();
16042
- ssChanged && this.selectionChanged.next(this.documentSelection.selectionState);
16042
+ (ssChanged || rePaint) && this.selectionChanged.next(this.documentSelection.selectionState);
16043
16043
  this.docRule.refreshRule();
16044
16044
  }
16045
16045
  hitInfoChanged(hitInfo) {
16046
16046
  this.documentSelection.setSelectionState(hitInfo);
16047
16047
  this.refreshDocument();
16048
- this.selectionChanged.next(this.documentSelection.selectionState);
16048
+ //this.selectionChanged.next(this.documentSelection.selectionState);
16049
16049
  }
16050
16050
  /**
16051
16051
  * 设置光标