Profile: Fix scrolling to tap on Android
This commit is contained in:
parent
5a444dbb50
commit
94d6a5d5eb
@ -288,14 +288,10 @@ const RightHeader: FC<OwnProps & StateProps & DispatchProps> = ({
|
||||
|
||||
const buttonClassName = buildClassName(
|
||||
'animated-close-icon',
|
||||
isBackButton && 'state-back',
|
||||
(shouldSkipTransition || shouldSkipAnimation) && 'no-transition',
|
||||
);
|
||||
|
||||
// Add class in the next AF to synchronize with animation with Transition components
|
||||
useEffect(() => {
|
||||
backButtonRef.current!.classList.toggle('state-back', isBackButton);
|
||||
}, [isBackButton]);
|
||||
|
||||
return (
|
||||
<div className="RightHeader">
|
||||
<Button
|
||||
|
||||
@ -47,7 +47,7 @@ export default function useProfileState(
|
||||
}
|
||||
|
||||
const tabListEl = container.querySelector<HTMLDivElement>('.TabList');
|
||||
if (!tabListEl || tabListEl.offsetTop > container.scrollTop) {
|
||||
if (!tabListEl) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user