This commit is contained in:
parent
b77d27b91a
commit
640abbf87f
2 changed files with 7 additions and 1 deletions
|
@ -49,6 +49,7 @@ import {insertAttrViewBlockAnimation} from "../render/av/row";
|
|||
import {avContextmenu} from "../render/av/action";
|
||||
import {openSearchAV} from "../render/av/relation";
|
||||
import {getPlainText} from "../util/paste";
|
||||
import {Menu} from "../../plugin/Menu";
|
||||
|
||||
export class Gutter {
|
||||
public element: HTMLElement;
|
||||
|
@ -64,6 +65,7 @@ export class Gutter {
|
|||
this.element.className = "protyle-gutters";
|
||||
this.element.addEventListener("dragstart", (event: DragEvent & { target: HTMLElement }) => {
|
||||
hideTooltip();
|
||||
window.siyuan.menus.menu.remove();
|
||||
const buttonElement = event.target.parentElement;
|
||||
let selectIds: string[] = [];
|
||||
let selectElements: Element[] = [];
|
||||
|
@ -925,7 +927,10 @@ export class Gutter {
|
|||
return;
|
||||
}
|
||||
hideElements(["util", "toolbar", "hint"], protyle);
|
||||
window.siyuan.menus.menu.remove();
|
||||
const menu = new Menu("gutter");
|
||||
if (menu.isOpen) {
|
||||
return;
|
||||
}
|
||||
if (isMobile()) {
|
||||
activeBlur();
|
||||
}
|
||||
|
|
|
@ -191,6 +191,7 @@ const promiseTransaction = () => {
|
|||
blockRender(protyle, item);
|
||||
}
|
||||
});
|
||||
hideElements(["gutter"], protyle);
|
||||
return;
|
||||
}
|
||||
if (operation.action === "move") {
|
||||
|
|
Loading…
Add table
Reference in a new issue