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/ProfileHeaderLabeler.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/ProfileHeaderLabeler.tsx')
-rw-r--r-- | src/screens/Profile/Header/ProfileHeaderLabeler.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/screens/Profile/Header/ProfileHeaderLabeler.tsx b/src/screens/Profile/Header/ProfileHeaderLabeler.tsx index b9145822c..cbac0b66c 100644 --- a/src/screens/Profile/Header/ProfileHeaderLabeler.tsx +++ b/src/screens/Profile/Header/ProfileHeaderLabeler.tsx @@ -21,6 +21,7 @@ import {usePreferencesQuery} from '#/state/queries/preferences' import {useRequireAuth, useSession} from '#/state/session' import {useAnalytics} from 'lib/analytics/analytics' import {useHaptics} from 'lib/haptics' +import {isIOS} from 'platform/detection' import {useProfileShadow} from 'state/cache/profile-shadow' import {ProfileMenu} from '#/view/com/profile/ProfileMenu' import * as Toast from '#/view/com/util/Toast' @@ -164,10 +165,12 @@ let ProfileHeaderLabeler = ({ moderation={moderation} hideBackButton={hideBackButton} isPlaceholderProfile={isPlaceholderProfile}> - <View style={[a.px_lg, a.pt_md, a.pb_sm]} pointerEvents="box-none"> + <View + style={[a.px_lg, a.pt_md, a.pb_sm]} + pointerEvents={isIOS ? 'auto' : 'box-none'}> <View style={[a.flex_row, a.justify_end, a.gap_sm, a.pb_lg]} - pointerEvents="box-none"> + pointerEvents={isIOS ? 'auto' : 'box-none'}> {isMe ? ( <Button testID="profileHeaderEditProfileButton" |