mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 19:43:58 +00:00
better tab drag UX
This commit is contained in:
@@ -307,7 +307,6 @@
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#each groupedTabs as tabGroup}
|
{#each groupedTabs as tabGroup}
|
||||||
@@ -360,8 +359,10 @@
|
|||||||
on:mouseup={e => handleMouseUp(e, tab.tabid)}
|
on:mouseup={e => handleMouseUp(e, tab.tabid)}
|
||||||
use:contextMenu={getContextMenu(tab)}
|
use:contextMenu={getContextMenu(tab)}
|
||||||
draggable={true}
|
draggable={true}
|
||||||
on:dragstart={e => {
|
on:dragstart={async e => {
|
||||||
draggingTab = tab;
|
draggingTab = tab;
|
||||||
|
await tick();
|
||||||
|
setSelectedTab(tab.tabid);
|
||||||
// console.log('START', tab.tabid);
|
// console.log('START', tab.tabid);
|
||||||
// e.dataTransfer.setData('tab_drag_data', tab.tabid);
|
// e.dataTransfer.setData('tab_drag_data', tab.tabid);
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user