From e4e211a2606fb3677c32ce95c85ff602f90e3f11 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 23 Sep 2024 23:36:24 +0800 Subject: [PATCH] :art: #11880 --- app/src/protyle/render/av/cell.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts index df87cc34c..326b7abe7 100644 --- a/app/src/protyle/render/av/cell.ts +++ b/app/src/protyle/render/av/cell.ts @@ -498,6 +498,11 @@ export const popTextCell = (protyle: IProtyle, cellElements: HTMLElement[], type avMaskElement.addEventListener("contextmenu", (event) => { removeAvMask(event); }); + avMaskElement.addEventListener("mousedown", (event:MouseEvent) => { + if (event.button === 1) { + removeAvMask(event); + } + }); }; const updateCellValueByInput = (protyle: IProtyle, type: TAVCol, blockElement: HTMLElement, cellElements: HTMLElement[]) => {