mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(ui): drag image over tab switches to wrong tab
This commit is contained in:
committed by
Kent Keirsey
parent
edae8a1617
commit
c5543e42c7
@@ -44,7 +44,7 @@ const PanelTabs = memo(({ setTab }: { setTab: (val: number) => void }) => {
|
||||
const onOnMouseOverLayersTab = useCallback(() => {
|
||||
tabTimeout.current = window.setTimeout(() => {
|
||||
if (dndCtx.active) {
|
||||
setTab(1);
|
||||
setTab(0);
|
||||
}
|
||||
}, 300);
|
||||
}, [dndCtx.active, setTab]);
|
||||
@@ -52,7 +52,7 @@ const PanelTabs = memo(({ setTab }: { setTab: (val: number) => void }) => {
|
||||
const onOnMouseOverGalleryTab = useCallback(() => {
|
||||
tabTimeout.current = window.setTimeout(() => {
|
||||
if (dndCtx.active) {
|
||||
setTab(0);
|
||||
setTab(1);
|
||||
}
|
||||
}, 300);
|
||||
}, [dndCtx.active, setTab]);
|
||||
|
||||
Reference in New Issue
Block a user