Loosen the scrollTop check

pull/286/head
Lim Chee Aun 2023-10-31 00:42:24 +08:00
rodzic 39d97a51c5
commit 33b989fffc
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

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

Wyświetl plik

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