Skip to content

Commit

Permalink
Fix for issue #282 in release branch 1.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
martindholmes committed Feb 8, 2024
1 parent ca7e9ec commit 633cb99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/StaticSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ class StaticSearch{
else{
this.isSearching = false;
}
window.scroll({ top: this.resultsDiv.offsetTop, behavior: "smooth" });
this.resultsDiv.scrollIntoView({behavior: 'smooth', block: 'center'});
return result;
}

Expand Down

0 comments on commit 633cb99

Please sign in to comment.