this repo has no description
0
fork

Configure Feed

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

Extra check if container if not clickable

+9 -4
+9 -4
src/components/timeline.jsx
··· 226 226 227 227 const loadOrCheckUpdates = useCallback( 228 228 async ({ disableIdleCheck = false } = {}) => { 229 - console.log('✨ Load or check updates', { 229 + const noPointers = scrollableRef.current 230 + ? getComputedStyle(scrollableRef.current).pointerEvents === 'none' 231 + : false; 232 + console.log('✨ Load or check updates', id, { 230 233 autoRefresh: snapStates.settings.autoRefresh, 231 234 scrollTop: scrollableRef.current.scrollTop, 232 235 disableIdleCheck, 233 236 idle: window.__IDLE__, 234 237 inBackground: inBackground(), 238 + noPointers, 235 239 }); 236 240 if ( 237 241 snapStates.settings.autoRefresh && 238 242 scrollableRef.current.scrollTop < 16 && 239 243 (disableIdleCheck || window.__IDLE__) && 240 - !inBackground() 244 + !inBackground() && 245 + !noPointers 241 246 ) { 242 - console.log('✨ Load updates', snapStates.settings.autoRefresh); 247 + console.log('✨ Load updates', id, snapStates.settings.autoRefresh); 243 248 loadItems(true); 244 249 } else { 245 - console.log('✨ Check updates', snapStates.settings.autoRefresh); 250 + console.log('✨ Check updates', id, snapStates.settings.autoRefresh); 246 251 const hasUpdate = await checkForUpdates(); 247 252 if (hasUpdate) { 248 253 console.log('✨ Has new updates', id);