From 9f784aa76da2887e776f9c6dfb124a17fbfcd882 Mon Sep 17 00:00:00 2001 From: TatianaLopaeva Date: Thu, 19 Nov 2020 10:00:31 +0300 Subject: [PATCH] Web: Common: Fixed the problem with showing header when scrolling down to the end of the page (ios) --- web/ASC.Web.Common/src/components/Layout/MobileLayout.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/web/ASC.Web.Common/src/components/Layout/MobileLayout.js b/web/ASC.Web.Common/src/components/Layout/MobileLayout.js index 9122e3be05..d16fcdc530 100644 --- a/web/ASC.Web.Common/src/components/Layout/MobileLayout.js +++ b/web/ASC.Web.Common/src/components/Layout/MobileLayout.js @@ -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