Skip to content

Commit

Permalink
Fix iOS mobile navigation tabs disappearing on bouncing top
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaeuerle committed Dec 11, 2024
1 parent 62d8358 commit 76311a1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ export function MobileNavTabs() {
<div key={idx} style={navTabStyle} />
));

useScrollListener(({ isScrolling }) => {
if (isScrolling('down')) {
useScrollListener(({ isScrolling, hasScrolledToEnd }) => {
if (isScrolling('down') && !hasScrolledToEnd('up')) {
hide();
} else if (isScrolling('up')) {
} else if (isScrolling('up') && !hasScrolledToEnd('down')) {
openDefault();
}
});
Expand Down

0 comments on commit 76311a1

Please sign in to comment.