From afd060d5b3a61d52fac20d189c3d55e9d734032d Mon Sep 17 00:00:00 2001 From: Jeffrey Chen <78434827+TCOTC@users.noreply.github.com> Date: Wed, 5 Feb 2025 17:26:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=BB=9A=E5=8A=A8=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E6=97=B6=E9=9A=90=E8=97=8F=20tooltip=20(#14018)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/protyle/wysiwyg/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts index ea3951e40..932b921d2 100644 --- a/app/src/protyle/wysiwyg/index.ts +++ b/app/src/protyle/wysiwyg/index.ts @@ -97,6 +97,7 @@ import {mathRender} from "../render/mathRender"; import {editAssetItem} from "../render/av/asset"; import {img3115} from "../../boot/compatibleVersion"; import {globalClickHideMenu} from "../../boot/globalEvent/click"; +import {hideTooltip} from "../../dialog/tooltip"; export class WYSIWYG { public lastHTMLs: { [key: string]: string } = {}; @@ -1904,6 +1905,7 @@ export class WYSIWYG { let preventGetTopHTML = false; this.element.addEventListener("mousewheel", (event: WheelEvent) => { + hideTooltip(); // https://ld246.com/article/1648865235549 // 不能使用上一版本的 timeStamp,否则一直滚动将导致间隔不够 https://ld246.com/article/1662852664926 if (!preventGetTopHTML &&