From eeb4eab649d5bc121c1bd3619856ec596c83ea0f Mon Sep 17 00:00:00 2001 From: Bill Kudo Date: Thu, 26 Apr 2018 22:28:13 +0900 Subject: [PATCH] Fixed a minor bug in the drag and drop of tabs --- src/popup/popup.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/popup/popup.js b/src/popup/popup.js index 43f749e..2b08bb2 100755 --- a/src/popup/popup.js +++ b/src/popup/popup.js @@ -498,7 +498,8 @@ function windowEntryDraggingOver(e) { e.target.parentElement.insertBefore(cursor, e.target); } } else if ((windowEntry = e.target.parentElement) !== null) { - if (windowEntry.classList.contains("window-entry")) { + if (windowEntry.classList.contains("window-entry") + && !sourceTab.classList.contains("pinned-tab")) { if (sourceWindow !== windowEntry) { e.target.classList.add("insert-cursor-window"); } @@ -539,7 +540,8 @@ function windowEntryDropped(e) { } } } else if ((windowEntry = e.target.parentElement) !== null) { - if (windowEntry.classList.contains("window-entry")) { + if (windowEntry.classList.contains("window-entry") + && !sourceTab.classList.contains("pinned-tab")) { if (sourceWindow !== e.target) { let sourceTabId = parseInt(sourceTab.getAttribute("data-tab_id")); let destinationWindowId = windowEntry.getAttribute("data-window_id");