Repository: rust-lang/mdBook (language: rust)

Issue:
Sticky header bar isn't sticky any more
### Problem

I updated from mdBook 0.4.21 to 0.4.27 and it seems to have broken the sticky header bar.

### Steps

1. Go to https://tavianator.com/2022/ray_box_boundary.html
2. Scroll down a page or two
3. Scroll back up a few inches

When I do this, the header bar remains off screen.  I can only see it when I scroll all the way back up to the top of the page.

### Possible Solution(s)

_No response_

### Notes

I tried both Firefox and Chrome on Arch LInux.

### Version

```text
mdbook v0.4.27
```



Discussion / hints:
Oh my, thanks for the report!  It looks like it regressed from #1994. @Skwodo do you think you could take a look?

Fix patch:
diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css
index 56c17b787c..29992f7b62 100644
--- a/src/theme/css/chrome.css
+++ b/src/theme/css/chrome.css
@@ -22,7 +22,7 @@ a > .hljs {
         the screen on small screens. Without it, dragging on mobile Safari
         will want to reposition the viewport in a weird way.
     */
-    overflow-x: hidden;
+    overflow-x: clip;
 }
 
 /* Menu Bar */


Test patch: