You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When offset is pageYOffset, scrollTo will be invoked with scrollTo(currentPageYOffset, newPageYOffset). When offset is pageXOffset, scrollTo will be invoked with scrollTo(currentPageXOffset, newPageXOffset).
This doesn't seem to be right. What we want to do is to preserve the value of X when we are changing Y and vice-versa.
The text was updated successfully, but these errors were encountered:
satazor
changed the title
getScrollAccessor when window seems wrong
getScrollAccessor on window seems wrong
Aug 25, 2020
dom-helpers/src/getScrollAccessor.ts
Line 19 in 536ae60
When offset is
pageYOffset
,scrollTo
will be invoked withscrollTo(currentPageYOffset, newPageYOffset)
. When offset ispageXOffset
,scrollTo
will be invoked withscrollTo(currentPageXOffset, newPageXOffset)
.This doesn't seem to be right. What we want to do is to preserve the value of X when we are changing Y and vice-versa.
The text was updated successfully, but these errors were encountered: