Loosen the scrollTop check

This commit is contained in:
Lim Chee Aun 2023-10-31 00:42:24 +08:00
parent 39d97a51c5
commit 33b989fffc
2 changed files with 3 additions and 3 deletions

View file

@ -235,7 +235,7 @@ function Timeline({
});
if (
snapStates.settings.autoRefresh &&
scrollableRef.current.scrollTop === 0 &&
scrollableRef.current.scrollTop < 16 &&
(disableIdleCheck || window.__IDLE__) &&
!inBackground()
) {

View file

@ -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 &&