소스 검색

Fixed bug with nav UI hiding on mobile

full-screen-logo-homepage
Said Achmiz 5 년 전
부모
커밋
f346bff4d4
2개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 2
    1
      .htaccess
  2. 3
    3
      assets/js/script.js

+ 2
- 1
.htaccess 파일 보기

@@ -1,6 +1,7 @@
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"
</filesMatch>


+ 3
- 3
assets/js/script.js 파일 보기

@@ -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();
}
}

Loading…
취소
저장