8325650: Table of contents scroll timeout not long enough

Reviewed-by: jjg
This commit is contained in:
Hannes Wallnöfer 2024-02-13 11:08:51 +00:00
parent c266800a3a
commit 088e54f560

@ -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")) {
@ -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();