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

This commit is contained in:
Jeffrey Chen 2025-02-05 17:26:32 +08:00 committed by GitHub
parent c06f740c1c
commit afd060d5b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 &&