mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-19 04:00:36 +03:00
improve sizeobserver with passive listeners, fix raf and setT code, move part of enviroment code to plugin
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
removeClass,
|
||||
removeElements,
|
||||
runEachAndClear,
|
||||
setT,
|
||||
stopPropagation,
|
||||
} from 'support';
|
||||
import {
|
||||
@@ -143,7 +144,7 @@ export const createScrollbarsSetupElements = (
|
||||
appendChildren(evaluatedScrollbarSlot, horizontalScrollbars[0]._scrollbar);
|
||||
appendChildren(evaluatedScrollbarSlot, verticalScrollbars[0]._scrollbar);
|
||||
|
||||
setTimeout(() => {
|
||||
setT(() => {
|
||||
addRemoveClassHorizontal(classNamesScrollbarTransitionless);
|
||||
addRemoveClassVertical(classNamesScrollbarTransitionless);
|
||||
}, 300);
|
||||
|
||||
Reference in New Issue
Block a user