this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove isHovering

+1 -18
-7
src/components/timeline.jsx
··· 206 206 } 207 207 }, [nearReachEnd, showMore]); 208 208 209 - const isHovering = useRef(false); 210 209 const idle = useIdle(5000); 211 210 console.debug('๐Ÿง˜โ€โ™€๏ธ IDLE', idle); 212 211 const loadOrCheckUpdates = useCallback( ··· 275 274 oRef.current = node; 276 275 }} 277 276 tabIndex="-1" 278 - onPointerEnter={(e) => { 279 - isHovering.current = true; 280 - }} 281 - onPointerLeave={() => { 282 - isHovering.current = false; 283 - }} 284 277 > 285 278 <div class="timeline-deck deck"> 286 279 <header
+1 -11
src/pages/notifications.jsx
··· 162 162 } 163 163 }, [nearReachEnd, showMore]); 164 164 165 - const isHovering = useRef(false); 166 165 const idle = useIdle(5000); 167 166 console.debug('๐Ÿง˜โ€โ™€๏ธ IDLE', idle); 168 167 const loadUpdates = useCallback(() => { 169 168 console.log('โœจ Load updates', { 170 169 autoRefresh: snapStates.settings.autoRefresh, 171 170 scrollTop: scrollableRef.current?.scrollTop === 0, 172 - isHovering: isHovering.current, 173 171 inBackground: inBackground(), 174 172 notificationsShowNew: snapStates.notificationsShowNew, 175 173 uiState, ··· 177 175 if ( 178 176 snapStates.settings.autoRefresh && 179 177 scrollableRef.current?.scrollTop === 0 && 180 - (!isHovering.current || idle) && 178 + idle && 181 179 !inBackground() && 182 180 snapStates.notificationsShowNew && 183 181 uiState !== 'loading' ··· 236 234 class="deck-container" 237 235 ref={scrollableRef} 238 236 tabIndex="-1" 239 - onPointerEnter={() => { 240 - console.log('๐Ÿ‘† Pointer enter'); 241 - isHovering.current = true; 242 - }} 243 - onPointerLeave={() => { 244 - console.log('๐Ÿ‘‡ Pointer leave'); 245 - isHovering.current = false; 246 - }} 247 237 > 248 238 <div class={`timeline-deck deck ${onlyMentions ? 'only-mentions' : ''}`}> 249 239 <header