mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
This commit is contained in:
parent
03050779a2
commit
ba7f302de6
1 changed files with 2 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ import {ipcRenderer} from "electron";
|
||||||
/// #endif
|
/// #endif
|
||||||
import {hideTooltip, showTooltip} from "../../dialog/tooltip";
|
import {hideTooltip, showTooltip} from "../../dialog/tooltip";
|
||||||
import {selectOpenTab} from "./util";
|
import {selectOpenTab} from "./util";
|
||||||
|
import {stopScrollAnimation} from "../../boot/globalEvent/dragover";
|
||||||
|
|
||||||
export class Files extends Model {
|
export class Files extends Model {
|
||||||
public element: HTMLElement;
|
public element: HTMLElement;
|
||||||
|
|
@ -484,6 +485,7 @@ export class Files extends Model {
|
||||||
item.classList.remove("layout-tab-bars--drag");
|
item.classList.remove("layout-tab-bars--drag");
|
||||||
});
|
});
|
||||||
/// #endif
|
/// #endif
|
||||||
|
stopScrollAnimation();
|
||||||
});
|
});
|
||||||
this.element.addEventListener("dragover", (event: DragEvent & { target: HTMLElement }) => {
|
this.element.addEventListener("dragover", (event: DragEvent & { target: HTMLElement }) => {
|
||||||
if (window.siyuan.config.readonly || event.dataTransfer.types.includes(Constants.SIYUAN_DROP_TAB)) {
|
if (window.siyuan.config.readonly || event.dataTransfer.types.includes(Constants.SIYUAN_DROP_TAB)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue