Skip to content

Commit

Permalink
Rollup merge of rust-lang#78013 - GuillaumeGomez:fix-sidebar-scroll-m…
Browse files Browse the repository at this point in the history
…obile-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
  • Loading branch information
JohnTitor authored Oct 16, 2020
2 parents d334059 + a577942 commit 001fcd9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/librustdoc/html/static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2716,10 +2716,6 @@ function defocusSearchBar() {
};
}

window.onresize = function() {
hideSidebar();
};

if (main) {
onEachLazy(main.getElementsByClassName("loading-content"), function(e) {
e.remove();
Expand Down

0 comments on commit 001fcd9

Please sign in to comment.