Skip to content

Commit

Permalink
8325650: Table of contents scroll timeout not long enough
Browse files Browse the repository at this point in the history
Reviewed-by: jjg
  • Loading branch information
hns committed Feb 13, 2024
1 parent c266800 commit 088e54f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ document.addEventListener("DOMContentLoaded", function(e) {
scrollTimeout = setTimeout(() => {
scrollTimeout = null;
handleScroll();
}, 50);
}, 100);
}
function handleScroll() {
if (!sidebar || !sidebar.offsetParent || sidebar.classList.contains("hide-sidebar")) {
Expand Down Expand Up @@ -445,7 +445,7 @@ document.addEventListener("DOMContentLoaded", function(e) {
// Resize handler
function handleResize(e) {
if (expanded) {
if (windowWidth != window.innerWidth) {
if (windowWidth !== window.innerWidth) {
collapse();
} else {
expand();
Expand Down

1 comment on commit 088e54f

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.