Web: Common: Fixed the problem with showing header when scrolling down to the end of the page (ios)

This commit is contained in:
TatianaLopaeva 2020-11-19 10:00:31 +03:00
parent bb8061cde2
commit 9f784aa76d

View File

@ -38,6 +38,13 @@ class MobileLayout extends Component {
let visibleContent = prevScrollPosition >= currentScrollPosition;
if (
currentScrollPosition >=
this.documentElement.scrollHeight - this.documentElement.clientHeight
) {
visibleContent = false;
}
if (
!visibleContent &&
this.documentElement.scrollHeight - this.documentElement.clientHeight < 57