Skip to content

Commit

Permalink
feat(utils): deprecate get/set-scroll-state (#2581)
Browse files Browse the repository at this point in the history
  • Loading branch information
straker authored Oct 22, 2020
1 parent 2ad3135 commit 3c4827f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/core/utils/get-scroll-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions lib/core/utils/set-scroll-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 3c4827f

Please sign in to comment.