Welcome to little lamb

Code » qmdoc » commit ce81c62

struct.css: Prevent overscroll in TOC

author Olivier Brunel
2023-01-02 18:54:02 UTC
committer Olivier Brunel
2023-01-04 15:10:17 UTC
parent 73b18597cadd2bee7bd004dc9c10ab7978366f35

struct.css: Prevent overscroll in TOC

That is, when scrolling as reach an end, don't start scrolling the page.

struct.css +1 -0

diff --git a/struct.css b/struct.css
index a7b4432..eb738e4 100644
--- a/struct.css
+++ b/struct.css
@@ -46,6 +46,7 @@ main header nav {
     height: 100%;
     min-height: 100%;
     overflow: hidden scroll;
+    overscroll-behavior-y: contain;
 }
 main header nav li a {
     line-height: 1.1em;