Skip to content

Commit

Permalink
fixed promo bar jitter glitch
Browse files Browse the repository at this point in the history
  • Loading branch information
james0r committed Sep 26, 2024
1 parent d1fd31d commit a0faec7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layout/theme.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<main
id="main-content"
role="main"
class="site-main-tw-component relative">
class="site-main relative">
{{ content_for_layout }}
</main>

Expand Down
2 changes: 1 addition & 1 deletion src/js/alpine/stores/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default {
// Hide promo bar when scrolling down more than 100px
if (window.scrollY > 100) {
this.isPromoBarVisible = false
} else {
} else if (window.scrollY < 60) {
this.isPromoBarVisible = true
}

Expand Down

0 comments on commit a0faec7

Please sign in to comment.