Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

fix: 滚动文档时隐藏 tooltip (#14018)

Jeffrey Chenafd060d5b3a6
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index ea3951e406..932b921d2c 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 &&