improve: cursor drawing when page visible
This commit is contained in:
@@ -139,7 +139,10 @@ export class GlobalEvent {
|
||||
|
||||
private _handleVisibilityChange = () => {
|
||||
if (document.visibilityState) {
|
||||
this.cursor?.drawCursor()
|
||||
const isCollapsed = this.range.getIsCollapsed()
|
||||
this.cursor?.drawCursor({
|
||||
isShow: isCollapsed
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user