improve: cursor drawing when page visible

pr675
Hufe921 3 years ago
parent 3f03d88443
commit 9c2bd33b7a

@ -139,7 +139,10 @@ export class GlobalEvent {
private _handleVisibilityChange = () => { private _handleVisibilityChange = () => {
if (document.visibilityState) { if (document.visibilityState) {
this.cursor?.drawCursor() const isCollapsed = this.range.getIsCollapsed()
this.cursor?.drawCursor({
isShow: isCollapsed
})
} }
} }

Loading…
Cancel
Save