This commit is contained in:
Vanessa 2022-07-02 21:54:22 +08:00
parent 58dd24564c
commit b235eb24ad

View file

@ -248,7 +248,7 @@ export class Wnd {
newWnd.headersElement.append(oldTab.headElement); newWnd.headersElement.append(oldTab.headElement);
newWnd.moveTab(oldTab); newWnd.moveTab(oldTab);
if (dragElement.style.bottom === "auto" && newWnd.element.previousElementSibling && targetWnd.element.parentElement) { if (dragElement.style.bottom === "50%" && newWnd.element.previousElementSibling && targetWnd.element.parentElement) {
// 交换位置 // 交换位置
switchWnd(newWnd, targetWnd); switchWnd(newWnd, targetWnd);
} }
@ -258,7 +258,7 @@ export class Wnd {
newWnd.headersElement.append(oldTab.headElement); newWnd.headersElement.append(oldTab.headElement);
newWnd.moveTab(oldTab); newWnd.moveTab(oldTab);
if (dragElement.style.right === "auto" && newWnd.element.previousElementSibling && targetWnd.element.parentElement) { if (dragElement.style.right === "50%" && newWnd.element.previousElementSibling && targetWnd.element.parentElement) {
// 交换位置 // 交换位置
switchWnd(newWnd, targetWnd); switchWnd(newWnd, targetWnd);
} }