diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-01-22 07:56:42 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-22 07:56:42 +0100 |
| commit | 6687e8e460683fa2242d8eca3da49097e39f859e (patch) | |
| tree | d782f787b751610cd339d8b289b03f22c962dbc6 /src/librustdoc/html | |
| parent | 7d7c2257d3670d3e0b1226449e5640446a11db17 (diff) | |
| parent | 8b52275ee34c829a29bbb677fffd7da48d242616 (diff) | |
| download | rust-6687e8e460683fa2242d8eca3da49097e39f859e.tar.gz rust-6687e8e460683fa2242d8eca3da49097e39f859e.zip | |
Rollup merge of #119746 - notriddle:notriddle/resize-close-modals, r=fmease
rustdoc: hide modals when resizing the sidebar Follow-up for https://github.com/rust-lang/rust/pull/119477#discussion_r1439085011 CC `@lukas-code`
Diffstat (limited to 'src/librustdoc/html')
| -rw-r--r-- | src/librustdoc/html/static/js/main.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/js/main.js b/src/librustdoc/html/static/js/main.js index 88901191cda..b46701b55ea 100644 --- a/src/librustdoc/html/static/js/main.js +++ b/src/librustdoc/html/static/js/main.js @@ -1721,6 +1721,7 @@ href="https://doc.rust-lang.org/${channel}/rustdoc/read-documentation/search.htm } currentPointerId = e.pointerId; } + window.hideAllModals(false); e.preventDefault(); window.addEventListener("pointermove", resize, false); window.addEventListener("pointercancel", stopResize, false); |
