From 140c253ce746c3133ebb8c48fc49961c7e0adb55 Mon Sep 17 00:00:00 2001 From: Rene Haas Date: Mon, 10 Jun 2024 16:11:19 +0200 Subject: [PATCH] remove improvement --- packages/overlayscrollbars/src/setups/setups.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/overlayscrollbars/src/setups/setups.ts b/packages/overlayscrollbars/src/setups/setups.ts index c880ee43..dfc3b414 100644 --- a/packages/overlayscrollbars/src/setups/setups.ts +++ b/packages/overlayscrollbars/src/setups/setups.ts @@ -81,7 +81,7 @@ export const createSetups = ( onUpdated: (updateInfo: SetupsUpdateInfo, updateHints: SetupsUpdateHints) => void, onScroll: (scrollEvent: Event) => void ): Setups => { - let cacheInitialized = false; + let cacheAndOptionsInitialized = false; const getCurrentOption = createOptionCheck(options, {}); const [ structureSetupCreate, @@ -128,7 +128,7 @@ export const createSetups = ( } = updateInfo; const _changedOptions = rawChangedOptions || {}; - const _force = !!rawForce || !cacheInitialized; + const _force = !!rawForce || !cacheAndOptionsInitialized; const baseUpdateInfoObj: SetupUpdateInfo = { _checkOption: createOptionCheck(options, _changedOptions, _force), _changedOptions, @@ -167,7 +167,7 @@ export const createSetups = ( const changed = truthyObserversHints || truthyStructureHints || !isEmptyObject(_changedOptions) || _force; - cacheInitialized = true; + cacheAndOptionsInitialized = true; changed && onUpdated(updateInfo, {