This commit is contained in:
Vanessa 2023-07-14 21:06:14 +08:00
parent 260c13eaeb
commit 81fec86918

View File

@ -3,6 +3,10 @@ import {Constants} from "../constants";
export const moveResize = (element: HTMLElement, afterCB?: (type: string) => void) => {
element.addEventListener("mousedown", (event: MouseEvent & { target: HTMLElement }) => {
// https://github.com/siyuan-note/siyuan/issues/8746
if (hasClosestByClassName(event.target, "protyle-util") && !element.classList.contains("protyle-util")) {
return;
}
let iconsElement = hasClosestByClassName(event.target, "resize__move");
let x: number;
let y: number;