File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -126,10 +126,12 @@ const Gallery: FC<Props> = ({ images }) => {
126
126
</ div >
127
127
128
128
{ /* control threshold with margin-top */ }
129
+ { /* must be on top so loader doesn't affect it */ }
129
130
< div ref = { observerTarget } className = "mt-0" />
130
131
131
132
< div
132
133
className = { cn (
134
+ // duration-500 is related to OBSERVER_DEBOUNCE: 300
133
135
'flex items-center justify-center transition-all duration-500 ease-in-out' ,
134
136
shouldShowLoader ? 'min-h-48' : 'min-h-0'
135
137
) }
Original file line number Diff line number Diff line change @@ -8,5 +8,5 @@ export const GALLERY = {
8
8
/** page dependency in useEffect is more important */
9
9
INITIAL_PAGE : 1 ,
10
10
/** fine tuned for scroll */
11
- OBSERVER_DEBOUNCE : 150 ,
11
+ OBSERVER_DEBOUNCE : 300 ,
12
12
} as const ;
You can’t perform that action at this time.
0 commit comments