From e79eb283a38592bc43e4deb398a41a5d42ed0ee4 Mon Sep 17 00:00:00 2001 From: TatianaLopaeva Date: Thu, 24 Dec 2020 18:06:20 +0300 Subject: [PATCH] Web: Common/People: Deleted useless scroll up. --- .../ASC.People/Client/src/components/pages/Profile/index.js | 2 +- web/ASC.Web.Common/src/components/Layout/MobileLayout.js | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/products/ASC.People/Client/src/components/pages/Profile/index.js b/products/ASC.People/Client/src/components/pages/Profile/index.js index c607ba1941..b80bb4dbfd 100644 --- a/products/ASC.People/Client/src/components/pages/Profile/index.js +++ b/products/ASC.People/Client/src/components/pages/Profile/index.js @@ -26,7 +26,7 @@ class PureProfile extends React.Component { componentDidMount() { const { match, fetchProfile, profile, location, t } = this.props; const { userId } = match.params; - isChrome && isAndroid && window && window.scroll(0, 0); + setDocumentTitle(t("Profile")); this.documentElement = document.getElementsByClassName( "needToCancelAnimationWithTransition" diff --git a/web/ASC.Web.Common/src/components/Layout/MobileLayout.js b/web/ASC.Web.Common/src/components/Layout/MobileLayout.js index 8e7830975a..492be64cb3 100644 --- a/web/ASC.Web.Common/src/components/Layout/MobileLayout.js +++ b/web/ASC.Web.Common/src/components/Layout/MobileLayout.js @@ -47,10 +47,6 @@ class MobileLayout extends Component { if (visibleContent && isMobile && !isTouchDevice) { return; } - if (!isIOS && window.pageYOffset !== 0) { - window.scroll(0, 0); - return; - } if (Math.abs(currentScrollPosition - prevScrollPosition) <= 54) { return;