mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
restore scrollbar
This commit is contained in:
parent
8cb19578c2
commit
194434dbfa
@ -118,6 +118,20 @@ const GalleryImageGrid = () => {
|
||||
);
|
||||
}, [dispatch, imageNames.length, galleryView]);
|
||||
|
||||
useEffect(() => {
|
||||
// Set up gallery scroler
|
||||
const { current: root } = rootRef;
|
||||
if (scroller && root) {
|
||||
initialize({
|
||||
target: root,
|
||||
elements: {
|
||||
viewport: scroller,
|
||||
},
|
||||
});
|
||||
}
|
||||
return () => osInstance()?.destroy();
|
||||
}, [scroller, initialize, osInstance]);
|
||||
|
||||
const handleEndReached = useMemo(() => {
|
||||
if (areMoreAvailable) {
|
||||
return handleLoadMoreImages;
|
||||
|
Loading…
Reference in New Issue
Block a user