Skip to content

Commit

Permalink
Merge pull request #44788 from Krishna2323/krishna2323/issue/44029
Browse files Browse the repository at this point in the history
fix: Web - Profile - Hovering over the zoom tool does not display a tooltip.
  • Loading branch information
neil-marcellini authored Jul 8, 2024
2 parents b419c06 + a90fe8f commit 15e67a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/AvatarCropModal/Slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import type {SharedValue} from 'react-native-reanimated';
import Tooltip from '@components/Tooltip';
import useLocalize from '@hooks/useLocalize';
import useThemeStyles from '@hooks/useThemeStyles';
import * as Browser from '@libs/Browser';
import ControlSelection from '@libs/ControlSelection';

type SliderProps = {
Expand Down Expand Up @@ -62,7 +63,7 @@ function Slider({sliderValue, gestureCallbacks}: SliderProps) {
shiftVertical={-2}
>
{/* pointerEventsNone is a workaround to make sure the pan gesture works correctly on mobile safari */}
<View style={[styles.sliderKnobTooltipView, styles.pointerEventsNone]} />
<View style={[styles.sliderKnobTooltipView, Browser.isMobileSafari() && styles.pointerEventsNone]} />
</Tooltip>
)}
</Animated.View>
Expand Down

0 comments on commit 15e67a0

Please sign in to comment.