Skip to content

Commit

Permalink
Increase scrubber height if touch device (#7081)
Browse files Browse the repository at this point in the history
* further increase target area of scrubber

* make scrubber bigger if touch device

---------

Co-authored-by: Antonio Sarcevic <[email protected]>
  • Loading branch information
mozzius and SarcevicAntonio authored Dec 12, 2024
1 parent f8cdd6b commit 4b32b0a
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {View} from 'react-native'
import {msg} from '@lingui/macro'
import {useLingui} from '@lingui/react'

import {isFirefox} from '#/lib/browser'
import {isFirefox, isTouchDevice} from '#/lib/browser'
import {clamp} from '#/lib/numbers'
import {atoms as a, useTheme, web} from '#/alf'
import {useInteractionState} from '#/components/hooks/useInteractionState'
Expand Down Expand Up @@ -148,7 +148,11 @@ export function Scrubber({
return (
<View
testID="scrubber"
style={[{height: 18, width: '100%'}, a.flex_shrink_0, a.px_xs]}
style={[
{height: isTouchDevice ? 32 : 18, width: '100%'},
a.flex_shrink_0,
a.px_xs,
]}
onPointerEnter={onStartHover}
onPointerLeave={onEndHover}>
<div
Expand Down

0 comments on commit 4b32b0a

Please sign in to comment.