Rollup merge of #78013 - GuillaumeGomez:fix-sidebar-scroll-mobile-devices, r=jyn514

Fix sidebar scroll on mobile devices

Fixes #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
This commit is contained in:
Yuki Okushi 2020-10-17 05:36:54 +09:00 committed by GitHub
commit 001fcd96d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2716,10 +2716,6 @@ function defocusSearchBar() {
};
}
window.onresize = function() {
hideSidebar();
};
if (main) {
onEachLazy(main.getElementsByClassName("loading-content"), function(e) {
e.remove();