diff --git a/lib/core/utils/get-scroll-state.js b/lib/core/utils/get-scroll-state.js index 9f05b04d45..41ee12353f 100644 --- a/lib/core/utils/get-scroll-state.js +++ b/lib/core/utils/get-scroll-state.js @@ -19,6 +19,7 @@ function getElmScrollRecursive(root) { /** * Get the scroll position of all scrollable elements in a page + * @deprecated */ function getScrollState(win = window) { const root = win.document.documentElement; diff --git a/lib/core/utils/set-scroll-state.js b/lib/core/utils/set-scroll-state.js index c6cb938cec..2f0f8a6eef 100644 --- a/lib/core/utils/set-scroll-state.js +++ b/lib/core/utils/set-scroll-state.js @@ -12,6 +12,7 @@ function setScroll(elm, top, left) { /** * set the scroll position of all items in the scrollState array + * @deprecated */ export function setScrollState(scrollState) { scrollState.forEach(({ elm, top, left }) => setScroll(elm, top, left));