Removed updateScrollBottom on Status, ScrollableList (fixes feed jumping?)

• Removed:
- updateScrollBottom on Status, ScrollableList (fixes feed jumping?)
This commit is contained in:
mgabdev
2020-08-19 11:15:59 -05:00
parent 9ba03d2c94
commit 859b4b5ca8
2 changed files with 1 additions and 57 deletions

View File

@@ -75,20 +75,6 @@ class ScrollableList extends React.PureComponent {
this.handleScroll();
}
getScrollPosition = () => {
if (this.documentElement && (this.documentElement.scrollTop > 0 || this.mouseMovedRecently)) {
return { height: this.documentElement.scrollHeight, top: this.documentElement.scrollTop };
}
return null;
}
updateScrollBottom = (snapshot) => {
const newScrollTop = this.documentElement.scrollHeight - snapshot;
this.setScrollTop(newScrollTop);
}
componentDidUpdate(prevProps, prevState, snapshot) {
// Reset the scroll position when a new child comes in in order not to
// jerk the scrollbar around if you're already scrolled down the page.
@@ -247,8 +233,6 @@ class ScrollableList extends React.PureComponent {
>
{
React.cloneElement(child, {
getScrollPosition: this.getScrollPosition,
updateScrollBottom: this.updateScrollBottom,
cachedMediaWidth: this.state.cachedMediaWidth,
cacheMediaWidth: this.cacheMediaWidth,
})