dom-helpers
dom-helpers copied to clipboard
getScrollAccessor on window seems wrong
https://github.com/react-bootstrap/dom-helpers/blob/536ae60e6cb13df301575ffb497f9ba02bace32c/src/getScrollAccessor.ts#L19
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.
ya seems like a bug!