Web: Files: Added scrolling up when navigating between folders.

This commit is contained in:
TatianaLopaeva 2021-01-13 20:11:37 +03:00
parent 20bb304f1e
commit b8c2120fac

View File

@ -256,6 +256,10 @@ class SectionBodyContent extends React.Component {
componentDidUpdate(prevProps) {
if (this.props.isTabletView) {
if (this.props.folderId !== prevProps.folderId) {
this.customScrollElm && this.customScrollElm.scrollTo(0, 0);
}
if (this.props.filter.page !== prevProps.filter.page)
this.isScrollUpOnTheNextPage = true;
if (this.isScrollUpOnTheNextPage) {