diff --git a/src/App.vue b/src/App.vue index 52f0221..2ab5a5e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -26,13 +26,13 @@ }, methods: { handleScroll() { - const limit = 430; + const limit = this.$isMobile() ? 115 : 430; if (!pagesWithCarousel.includes(this.$route.name)) { this.stickyClass = 'has-sticky has-sticky-1' return; } - if (window.scrollY > 0 && window.scrollY <= limit) { + if (window.scrollY > 5 && window.scrollY <= limit) { this.stickyClass = 'has-sticky has-sticky-0'; } else if(window.scrollY > limit) { this.stickyClass = 'has-sticky has-sticky-1'; @@ -45,7 +45,7 @@