mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-22 15:04:07 +01:00
🎨 隐藏停靠栏会导致点击两侧内容触发浮动面板弹出,因此需减小鼠标范围
This commit is contained in:
parent
d4e3c1e660
commit
fb2c35e9d3
2 changed files with 6 additions and 3 deletions
|
|
@ -131,7 +131,7 @@ ${this.position === "Top" ? ("top:" + (this.element.offsetHeight + document.getE
|
|||
}
|
||||
});
|
||||
this.layout.element.addEventListener("mouseleave", (event: MouseEvent & { toElement: HTMLElement }) => {
|
||||
if (this.pin || event.toElement.classList.contains("b3-menu")) {
|
||||
if (this.pin || event.toElement?.classList.contains("b3-menu")) {
|
||||
return;
|
||||
}
|
||||
if (this.position === "Left" && event.clientX < 43) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue