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 = () => { 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(