mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-14 10:39:32 +01:00
Revert "fix(tabs): no drag while a rail search is active (#580)"
This reverts commit 183efacc93.
This commit is contained in:
1 parent
29c2701f83
commit
be9454a29b
4 files changed
+2
-68
No files matched your search
@@ -8020,9 +8020,6 @@ class CodemanApp {
|
||||
if (this._tabLayoutDrag) this._cancelTabLayoutPointerDrag(container);
|
||||
if (e.button !== 0 || e.pointerType === 'touch' || !container.classList.contains('session-tabs--grouped')) return;
|
||||
if (this._inlineRenameActive || !this._tabLayoutEditable()) return;
|
||||
// No drag while the rail search narrows the list: a drop is saved for every
|
||||
// device, relative to rows the search is hiding (owner's call on #580).
|
||||
if (this._tabRailSearchActive()) return;
|
||||
// Controls keep their own click; only the row body or the header drags.
|
||||
if (e.target.closest('.tab-actions, .tab-badge, .tab-layout-group-menu, button, input, [onclick*="stopPropagation"]')) return;
|
||||
const header = e.target.closest('[data-tab-group-header]');
|
||||
@@ -8240,14 +8237,6 @@ class CodemanApp {
|
||||
tab.setAttribute('draggable', 'true');
|
||||
|
||||
tab.addEventListener('dragstart', (e) => {
|
||||
// No drag while the rail search narrows the list: the drop rewrites the
|
||||
// order every device sees, relative to rows the search is hiding
|
||||
// (owner's call on #580). Refused here rather than by `draggable`,
|
||||
// because a keystroke in the box does not re-render the rows.
|
||||
if (this._tabRailSearchActive()) {
|
||||
e.preventDefault();
|
||||
return;
|
||||
}
|
||||
this.draggedTabId = tab.dataset.id;
|
||||
tab.classList.add('dragging');
|
||||
e.dataTransfer.effectAllowed = 'move';
|
||||
|
||||
Reference in new issue
Block a user