Suppress scroll-anchoring in the sidebar (#992)

This commit is contained in:
Richard van der Hoff 2022-03-08 17:54:00 +00:00 committed by GitHub
parent 7293744a5e
commit d199c05e97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,6 +41,11 @@ Custom SCSS for the Matrix spec
} }
/* Styles for the sidebar nav */ /* Styles for the sidebar nav */
.td-sidebar {
/* don't attempt to use the sidebar (or things in it) as a scroll anchor. */
overflow-anchor: none;
}
.td-sidebar-nav { .td-sidebar-nav {
scroll-behavior: smooth; scroll-behavior: smooth;
overscroll-behavior: contain; overscroll-behavior: contain;