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