Skip to content

Commit

Permalink
fix(navigation): init with correct last_scroll_top value
Browse files Browse the repository at this point in the history
  • Loading branch information
susickypavel committed Oct 4, 2024
1 parent c1a7454 commit 45cd5bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/src/layouts/common/navigation.astro
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const { status } = config;
<script>
const scroll_factor = 3;

let last_scroll_top = 0;
let last_scroll_top = window.scrollY || document.documentElement.scrollTop;
let accumulated_delta = 0;
let is_scrolling = false;

Expand Down

0 comments on commit 45cd5bf

Please sign in to comment.