Skip to content

Commit

Permalink
fix: fix single click
Browse files Browse the repository at this point in the history
  • Loading branch information
Jocs committed Jun 28, 2024
1 parent 3ce56d8 commit a55f5f6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export class DocHeaderFooterController extends Disposable implements IRenderModu
const docObject = neoGetDocObject(this._context);
const { document } = docObject;

this.disposeWithMe(document.onDblclickObserver.add(async (evt: IPointerEvent | IMouseEvent) => {
this.disposeWithMe(document.onDblclick$.subscribeEvent(async (evt: IPointerEvent | IMouseEvent) => {
if (this._isEditorReadOnly(unitId)) {
return;
}
Expand Down Expand Up @@ -278,7 +278,7 @@ export class DocHeaderFooterController extends Disposable implements IRenderModu

this.disposeWithMe(
toDisposable(
docsComponent.onPageRenderObservable.add((config: IPageRenderConfig) => {
docsComponent.pageRender$.subscribe((config: IPageRenderConfig) => {
const viewModel = this._docSkeletonManagerService.getViewModel();
const isEditBody = viewModel.getEditArea() === DocumentEditArea.BODY;
if (this._editorService.isEditor(unitId) || isEditBody) {
Expand Down

0 comments on commit a55f5f6

Please sign in to comment.