Web: Common/People: Deleted useless scroll up.

This commit is contained in:
TatianaLopaeva 2020-12-24 18:06:20 +03:00
parent 9c7936327a
commit e79eb283a3
2 changed files with 1 additions and 5 deletions

View File

@ -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"

View File

@ -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;