From 5b82b1500720cc959d90471432b84c09d2f86388 Mon Sep 17 00:00:00 2001 From: Hailey Date: Wed, 24 Apr 2024 17:24:20 -0700 Subject: [PATCH] remove use of `pointerEvents` on iOS profile header (#3694) --- .../Profile/Header/ProfileHeaderLabeler.tsx | 7 ++++-- .../Profile/Header/ProfileHeaderStandard.tsx | 8 +++--- src/screens/Profile/Header/Shell.tsx | 9 ++++--- src/view/com/pager/PagerWithHeader.tsx | 25 +++++++++++-------- 4 files changed, 31 insertions(+), 18 deletions(-) diff --git a/src/screens/Profile/Header/ProfileHeaderLabeler.tsx b/src/screens/Profile/Header/ProfileHeaderLabeler.tsx index b9145822..cbac0b66 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}> - + + pointerEvents={isIOS ? 'auto' : 'box-none'}> {isMe ? (