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(
|
const buttonClassName = buildClassName(
|
||||||
'animated-close-icon',
|
'animated-close-icon',
|
||||||
|
isBackButton && 'state-back',
|
||||||
(shouldSkipTransition || shouldSkipAnimation) && 'no-transition',
|
(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 (
|
return (
|
||||||
<div className="RightHeader">
|
<div className="RightHeader">
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
@ -47,7 +47,7 @@ export default function useProfileState(
|
|||||||
}
|
}
|
||||||
|
|
||||||
const tabListEl = container.querySelector<HTMLDivElement>('.TabList');
|
const tabListEl = container.querySelector<HTMLDivElement>('.TabList');
|
||||||
if (!tabListEl || tabListEl.offsetTop > container.scrollTop) {
|
if (!tabListEl) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user