mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-21 01:00:35 +03:00
optimize observers with css containment
This commit is contained in:
@@ -26,6 +26,7 @@ $scrollbar-cushion: 100px;
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
|
contain: strict;
|
||||||
}
|
}
|
||||||
|
|
||||||
.os-size-observer-appear {
|
.os-size-observer-appear {
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
z-index: -1;
|
z-index: -1;
|
||||||
height: 0;
|
height: 0;
|
||||||
top: calc(-100% + 1px);
|
top: calc(-100% + 1px);
|
||||||
|
contain: strict;
|
||||||
|
|
||||||
&:not(:empty) {
|
&:not(:empty) {
|
||||||
height: calc(100% + 1px);
|
height: calc(100% + 1px);
|
||||||
|
|||||||
Reference in New Issue
Block a user