mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 01:50:12 +01:00
🐛 菜单没有就不弹出
This commit is contained in:
parent
05f43779c6
commit
f8c1f60fd4
1 changed files with 3 additions and 0 deletions
|
|
@ -86,6 +86,9 @@ export class Menu {
|
|||
}
|
||||
|
||||
public popup(options: { x: number, y: number, h?: number }, isLeft = false) {
|
||||
if (this.element.innerHTML === "") {
|
||||
return;
|
||||
}
|
||||
if (isMobile()) {
|
||||
window.addEventListener("touchmove", this.preventDefault, {passive: false});
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue