Skip to content

Commit 40160a1

Browse files
authored
Rollup merge of rust-lang#78013 - GuillaumeGomez:fix-sidebar-scroll-mobile-devices, r=jyn514
Fix sidebar scroll on mobile devices Fixes rust-lang#77942. The issue was coming from the appearance/disappearance of the "wrapper" on the mobile devices web browsers, which triggers the "resize" event, calling the `hideSidebar` function is the JS code. r? @jyn514
2 parents 4bb962e + a577942 commit 40160a1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/librustdoc/html/static/main.js

-4
Original file line numberDiff line numberDiff line change
@@ -2716,10 +2716,6 @@ function defocusSearchBar() {
27162716
};
27172717
}
27182718

2719-
window.onresize = function() {
2720-
hideSidebar();
2721-
};
2722-
27232719
if (main) {
27242720
onEachLazy(main.getElementsByClassName("loading-content"), function(e) {
27252721
e.remove();

0 commit comments

Comments
 (0)