mirror of
https://github.com/dbgate/dbgate
synced 2024-11-21 23:39:46 +00:00
UX
This commit is contained in:
parent
e64cfce423
commit
c7ef4b9231
@ -336,6 +336,12 @@
|
||||
setSelectedTab(tabid);
|
||||
};
|
||||
|
||||
const handleMouseDown = (e, tabid) => {
|
||||
if (e.button == 1) {
|
||||
e.preventDefault();
|
||||
}
|
||||
};
|
||||
|
||||
const handleMouseUp = (e, tabid) => {
|
||||
if (e.button == 1) {
|
||||
e.preventDefault();
|
||||
@ -563,6 +569,7 @@
|
||||
? tab.tabid == $draggingTabTarget?.tabid
|
||||
: tab.tabid == shownTab?.tabid}
|
||||
on:click={e => handleTabClick(e, tab.tabid)}
|
||||
on:mousedown={e => handleMouseDown(e, tab.tabid)}
|
||||
on:mouseup={e => handleMouseUp(e, tab.tabid)}
|
||||
use:contextMenu={getContextMenu(tab)}
|
||||
draggable={true}
|
||||
|
Loading…
Reference in New Issue
Block a user