fix(ui): canvas rescale when toggle gallery

This commit is contained in:
psychedelicious 2023-03-12 13:57:37 +11:00
parent dc2f69f5d1
commit 209a55b681

View File

@ -78,6 +78,7 @@ export default function ImageGalleryPanel() {
const handleToggleGallery = () => {
dispatch(toggleGalleryPanel());
shouldPinGallery && dispatch(requestCanvasRescale());
};
const handleCloseGallery = () => {
@ -90,7 +91,7 @@ export default function ImageGalleryPanel() {
() => {
handleToggleGallery();
},
[shouldShowGallery, shouldPinGallery]
[shouldPinGallery]
);
useHotkeys(