Web: Common/People: Deleted useless scroll up.
This commit is contained in:
parent
9c7936327a
commit
e79eb283a3
@ -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"
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user