Skip to content

Commit

Permalink
FIX, changed value in scroll animation to 450.
Browse files Browse the repository at this point in the history
  • Loading branch information
jxmot committed Mar 16, 2022
1 parent 2c314e5 commit 6e80ed9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions public_html/assets/js/nobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,8 @@ function scrollTo(href) {
}
$('html').stop(true).animate({
scrollTop: ($(goTo).position().top - hdrheight)
},
{
duration: 500,
easing: 'swing'
});
},450); // NOTE: Any value greater than ~450 will cause
// the scroll to miss its target.
} else consolelog('scrollTo() - bad hdrheight');
};

Expand Down

0 comments on commit 6e80ed9

Please sign in to comment.