Skip to content

Commit

Permalink
Fixes the behaviour when width is between 1024 and 1240
Browse files Browse the repository at this point in the history
Signed-off-by: Tao He <sighingnow@gmail.com>
  • Loading branch information
sighingnow committed Aug 28, 2023
1 parent 6f8edb8 commit f789687
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/toc-date.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
function mobilePageScrollToAnchor(element) {
$(element).closest('li.chapter').find('ul>li').removeClass('active');
$(element).parent().addClass('active');
if ($(document).width() <= 1024) {
if ($(document).width() <= 1240) {
$('div.body-inner').animate({scrollTop: $($(element).attr('href')).get(0).offsetTop});
}
return true;
Expand Down

0 comments on commit f789687

Please sign in to comment.