Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
aytackokus committed Feb 1, 2022
1 parent 6628c4d commit d936a2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layout/js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jQuery(document).ready(function ($) {
if (target.length) {
$('html,body').animate(
{
scrollTop: target.offset().top - $('#sticky-wrapper').outerHeight(true),
scrollTop: target.offset().top - ( $( '#sticky-wrapper' ).outerHeight( true ) || 0 )
},
1000
);
Expand Down
2 changes: 1 addition & 1 deletion layout/js/scripts.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d936a2f

Please sign in to comment.