diff options
author | Hailey <me@haileyok.com> | 2024-04-24 17:24:20 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-25 01:24:20 +0100 |
commit | 5b82b1500720cc959d90471432b84c09d2f86388 (patch) | |
tree | 7f0eecc34555af33ced066e66d0e56ba7c63fb75 /src/screens/Profile/Header/Shell.tsx | |
parent | c3fcd486b3af97a2493190f9ec35febf6675f1ce (diff) | |
download | voidsky-5b82b1500720cc959d90471432b84c09d2f86388.tar.zst |
remove use of `pointerEvents` on iOS profile header (#3694)
Diffstat (limited to 'src/screens/Profile/Header/Shell.tsx')
-rw-r--r-- | src/screens/Profile/Header/Shell.tsx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/screens/Profile/Header/Shell.tsx b/src/screens/Profile/Header/Shell.tsx index c6063591c..a118ef1d1 100644 --- a/src/screens/Profile/Header/Shell.tsx +++ b/src/screens/Profile/Header/Shell.tsx @@ -12,6 +12,7 @@ import {useSession} from '#/state/session' import {BACK_HITSLOP} from 'lib/constants' import {useWebMediaQueries} from 'lib/hooks/useWebMediaQueries' import {NavigationProp} from 'lib/routes/types' +import {isIOS} from 'platform/detection' import {LoadingPlaceholder} from 'view/com/util/LoadingPlaceholder' import {UserAvatar} from 'view/com/util/UserAvatar' import {UserBanner} from 'view/com/util/UserBanner' @@ -61,8 +62,8 @@ let ProfileHeaderShell = ({ ) return ( - <View style={t.atoms.bg} pointerEvents="box-none"> - <View pointerEvents="none"> + <View style={t.atoms.bg} pointerEvents={isIOS ? 'auto' : 'box-none'}> + <View pointerEvents={isIOS ? 'auto' : 'none'}> {isPlaceholderProfile ? ( <LoadingPlaceholder width="100%" @@ -80,7 +81,9 @@ let ProfileHeaderShell = ({ {children} - <View style={[a.px_lg, a.pb_sm]} pointerEvents="box-none"> + <View + style={[a.px_lg, a.pb_sm]} + pointerEvents={isIOS ? 'auto' : 'box-none'}> <ProfileHeaderAlerts moderation={moderation} /> {isMe && ( <LabelsOnMe details={{did: profile.did}} labels={profile.labels} /> |