mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-05 16:28:49 +01:00
fix: 滚动文档时隐藏 tooltip (#14018)
This commit is contained in:
parent
c06f740c1c
commit
afd060d5b3
1 changed files with 2 additions and 0 deletions
|
|
@ -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 &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue