Fix to gallery resizing

This commit is contained in:
blessedcoolant 2022-11-22 16:22:40 +13:00
parent 25b19b9ab8
commit f3b7316683

View File

@ -117,8 +117,7 @@ export default function ImageGallery() {
const handleOpenGallery = () => { const handleOpenGallery = () => {
dispatch(setShouldShowGallery(true)); dispatch(setShouldShowGallery(true));
shouldPinGallery && shouldPinGallery && dispatch(setDoesCanvasNeedScaling(true));
setTimeout(() => dispatch(setDoesCanvasNeedScaling(true)), 400);
}; };
const handleCloseGallery = useCallback(() => { const handleCloseGallery = useCallback(() => {