diff --git a/src/pages/notifications.jsx b/src/pages/notifications.jsx index ac490b30..444b0bd7 100644 --- a/src/pages/notifications.jsx +++ b/src/pages/notifications.jsx @@ -56,9 +56,11 @@ function Notifications() { const [showMore, setShowMore] = useState(false); const [onlyMentions, setOnlyMentions] = useState(false); const scrollableRef = useRef(); - const { nearReachEnd, reachStart } = useScroll({ - scrollableElement: scrollableRef.current, - }); + const { nearReachEnd, scrollDirection, reachStart, nearReachStart } = + useScroll({ + scrollableElement: scrollableRef.current, + }); + const hiddenUI = scrollDirection === 'end' && !nearReachStart; console.debug('RENDER Notifications'); @@ -142,6 +144,7 @@ function Notifications() { >
+ {snapStates.notificationsShowNew && uiState !== 'loading' && ( + + )} - {snapStates.notificationsShowNew && uiState !== 'loading' && ( - - )}