Skip to content

Commit 745c3bc

Browse files
committed
fix: progress bar hit slop for better touch
1 parent 07fbf13 commit 745c3bc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package/src/components/ProgressControl/ProgressControl.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const ProgressControlThumb = () => {
5656
} = useTheme();
5757
return (
5858
<View
59-
hitSlop={{ top: 20, bottom: 20, left: 20, right: 20 }}
59+
hitSlop={{ bottom: 20, left: 20, right: 20, top: 20 }}
6060
style={[
6161
styles.progressControlThumbStyle,
6262
{ backgroundColor: static_white, borderColor: grey_dark, shadowColor: black },

package/src/components/ProgressControl/WaveProgressBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const ProgressControlThumb = ({ style }: { style?: StyleProp<ViewStyle> }) => {
5454
} = useTheme();
5555
return (
5656
<View
57-
hitSlop={{ top: 20, bottom: 20, left: 20, right: 20 }}
57+
hitSlop={{ bottom: 20, left: 20, right: 20, top: 20 }}
5858
style={[
5959
styles.progressControlThumbStyle,
6060
{

0 commit comments

Comments
 (0)