about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2020-10-16 15:01:17 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2020-10-16 15:01:17 +0200
commita577942a8f398a516a1156be8e3e672cd28edf3d (patch)
treeb397d059286c7478648c69d0a828880e67f76b15
parent0e022fc2b8eecbc16c090a99efbbd262c37ec962 (diff)
Fix sidebar scroll on mobile devices
-rw-r--r--src/librustdoc/html/static/main.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js
index 1b3eb2011af..67e50bba1f2 100644
--- a/src/librustdoc/html/static/main.js
+++ b/src/librustdoc/html/static/main.js
@@ -2716,10 +2716,6 @@ function defocusSearchBar() {
         };
     }
 
-    window.onresize = function() {
-        hideSidebar();
-    };
-
     if (main) {
         onEachLazy(main.getElementsByClassName("loading-content"), function(e) {
             e.remove();