This commit is contained in:
Vanessa 2023-11-10 12:08:21 +08:00
parent 180dce0a78
commit 2a082ad59e
2 changed files with 17 additions and 4 deletions

View file

@ -92,7 +92,7 @@ export const openMenuPanel = (options: {
bindEditEvent({protyle: options.protyle, data, menuElement});
}
}
avPanelElement.addEventListener("dragstart", (event) => {
avPanelElement.addEventListener("dragstart", (event: DragEvent) => {
window.siyuan.dragElement = event.target as HTMLElement;
window.siyuan.dragElement.style.opacity = ".1";
return;