forked from achmizs/deus-gaming
Fixed bug with nav UI hiding on mobile
This commit is contained in:
parent
2b6ad04d9e
commit
f346bff4d4
@ -1,6 +1,7 @@
|
|||||||
AddCharset utf-8 .shtml .html .css .php .txt .js
|
AddCharset utf-8 .shtml .html .css .php .txt .js
|
||||||
|
|
||||||
<filesMatch ".(css)$">
|
# Disable caching of CSS and JS (for testing only).
|
||||||
|
<filesMatch ".(css|js)$">
|
||||||
Header set Cache-Control "max-age=0, public"
|
Header set Cache-Control "max-age=0, public"
|
||||||
</filesMatch>
|
</filesMatch>
|
||||||
|
|
||||||
|
|||||||
@ -402,9 +402,9 @@ function updateSiteNavUIState(event) {
|
|||||||
|
|
||||||
// On desktop, show site nav UI when scrolling a full page up, or to the
|
// On desktop, show site nav UI when scrolling a full page up, or to the
|
||||||
// the top of the page.
|
// 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.mediaQueries.mobileNarrow.matches) {
|
||||||
if (GW.scrollState.unbrokenUpScrollDistance > 0)
|
if (GW.scrollState.unbrokenUpScrollDistance > 0 || GW.scrollState.lastScrollTop <= 0)
|
||||||
showSiteNavUI();
|
showSiteNavUI();
|
||||||
} else if ( GW.scrollState.unbrokenUpScrollDistance > window.innerHeight
|
} else if ( GW.scrollState.unbrokenUpScrollDistance > window.innerHeight
|
||||||
|| GW.scrollState.lastScrollTop == 0) {
|
|| GW.scrollState.lastScrollTop == 0) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user