mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Fixes unnecessary canvas scaling
This commit is contained in:
parent
3f0cfaac4a
commit
3aebe754fa
@ -129,8 +129,11 @@ export default function ImageGallery() {
|
|||||||
galleryContainerRef.current ? galleryContainerRef.current.scrollTop : 0
|
galleryContainerRef.current ? galleryContainerRef.current.scrollTop : 0
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
setTimeout(() => dispatch(setDoesCanvasNeedScaling(true)), 400);
|
setTimeout(
|
||||||
}, [dispatch]);
|
() => shouldPinGallery && dispatch(setDoesCanvasNeedScaling(true)),
|
||||||
|
400
|
||||||
|
);
|
||||||
|
}, [dispatch, shouldPinGallery]);
|
||||||
|
|
||||||
const handleClickLoadMore = () => {
|
const handleClickLoadMore = () => {
|
||||||
dispatch(requestImages(currentCategory));
|
dispatch(requestImages(currentCategory));
|
||||||
|
Loading…
Reference in New Issue
Block a user