8325650: Table of contents scroll timeout not long enough
Reviewed-by: jjg
This commit is contained in:
parent
c266800a3a
commit
088e54f560
4
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/resources/script.js.template
4
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/resources/script.js.template
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user