kopia lustrzana https://github.com/cheeaun/phanpy
				
				
				
			Loosen the scrollTop check
							rodzic
							
								
									39d97a51c5
								
							
						
					
					
						commit
						33b989fffc
					
				|  | @ -235,7 +235,7 @@ function Timeline({ | |||
|       }); | ||||
|       if ( | ||||
|         snapStates.settings.autoRefresh && | ||||
|         scrollableRef.current.scrollTop === 0 && | ||||
|         scrollableRef.current.scrollTop < 16 && | ||||
|         (disableIdleCheck || window.__IDLE__) && | ||||
|         !inBackground() | ||||
|       ) { | ||||
|  |  | |||
|  | @ -179,7 +179,7 @@ function Notifications({ columnMode }) { | |||
|     ({ disableIdleCheck = false } = {}) => { | ||||
|       console.log('✨ Load updates', { | ||||
|         autoRefresh: snapStates.settings.autoRefresh, | ||||
|         scrollTop: scrollableRef.current?.scrollTop === 0, | ||||
|         scrollTop: scrollableRef.current?.scrollTop, | ||||
|         inBackground: inBackground(), | ||||
|         disableIdleCheck, | ||||
|         notificationsShowNew: snapStates.notificationsShowNew, | ||||
|  | @ -187,7 +187,7 @@ function Notifications({ columnMode }) { | |||
|       }); | ||||
|       if ( | ||||
|         snapStates.settings.autoRefresh && | ||||
|         scrollableRef.current?.scrollTop === 0 && | ||||
|         scrollableRef.current?.scrollTop < 16 && | ||||
|         (disableIdleCheck || window.__IDLE__) && | ||||
|         !inBackground() && | ||||
|         snapStates.notificationsShowNew && | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 Lim Chee Aun
						Lim Chee Aun