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 = () => {
dispatch(setShouldShowGallery(true));
shouldPinGallery &&
setTimeout(() => dispatch(setDoesCanvasNeedScaling(true)), 400);
shouldPinGallery && dispatch(setDoesCanvasNeedScaling(true));
};
const handleCloseGallery = useCallback(() => {