mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): canvas rescale when toggle gallery
This commit is contained in:
parent
dc2f69f5d1
commit
209a55b681
@ -78,6 +78,7 @@ export default function ImageGalleryPanel() {
|
|||||||
|
|
||||||
const handleToggleGallery = () => {
|
const handleToggleGallery = () => {
|
||||||
dispatch(toggleGalleryPanel());
|
dispatch(toggleGalleryPanel());
|
||||||
|
shouldPinGallery && dispatch(requestCanvasRescale());
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleCloseGallery = () => {
|
const handleCloseGallery = () => {
|
||||||
@ -90,7 +91,7 @@ export default function ImageGalleryPanel() {
|
|||||||
() => {
|
() => {
|
||||||
handleToggleGallery();
|
handleToggleGallery();
|
||||||
},
|
},
|
||||||
[shouldShowGallery, shouldPinGallery]
|
[shouldPinGallery]
|
||||||
);
|
);
|
||||||
|
|
||||||
useHotkeys(
|
useHotkeys(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user