|
|
|
@@ -402,12 +402,12 @@ function updateSiteNavUIState(event) { |
|
|
|
|
|
|
|
// On desktop, show site nav UI when scrolling a full page up, or to the |
|
|
|
// the top of the page. |
|
|
|
// On mobile, show site nav UI translucent on ANY scroll up. |
|
|
|
// On mobile, show site nav UI on ANY scroll up. |
|
|
|
if (GW.mediaQueries.mobileNarrow.matches) { |
|
|
|
if (GW.scrollState.unbrokenUpScrollDistance > 0) |
|
|
|
if (GW.scrollState.unbrokenUpScrollDistance > 0 || GW.scrollState.lastScrollTop <= 0) |
|
|
|
showSiteNavUI(); |
|
|
|
} else if ( GW.scrollState.unbrokenUpScrollDistance > window.innerHeight |
|
|
|
|| GW.scrollState.lastScrollTop == 0) { |
|
|
|
|| GW.scrollState.lastScrollTop == 0) { |
|
|
|
showSiteNavUI(); |
|
|
|
} |
|
|
|
} |