Skip to content

Commit

Permalink
updated skipto
Browse files Browse the repository at this point in the history
  • Loading branch information
jongund committed Oct 17, 2024
1 parent d458069 commit dcf2c30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/shared/js/skipto.js
Original file line number Diff line number Diff line change
Expand Up @@ -2155,7 +2155,7 @@ $skipToId-overlay div.overlay-border {
}
else {
if (!isElementInViewport(element) && !isReduced) {
element.scrollIntoView({ behavior: highlightTarget, block: 'center', inline: 'nearest' });
element.scrollIntoView({ behavior: highlightTarget, block: 'start', inline: 'nearest' });
}
}

Expand Down

0 comments on commit dcf2c30

Please sign in to comment.