mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-14 12:18:30 +03:00
Loosen the scrollTop check
This commit is contained in:
parent
39d97a51c5
commit
33b989fffc
2 changed files with 3 additions and 3 deletions
|
@ -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 &&
|
||||
|
|
Loading…
Add table
Reference in a new issue