|
1 | 1 | import React, { useCallback, useEffect, useMemo, useState } from 'react'; |
2 | | -import { Platform, Pressable, StyleProp, StyleSheet, View, ViewStyle } from 'react-native'; |
| 2 | +import { Platform, StyleProp, StyleSheet, View, ViewStyle } from 'react-native'; |
3 | 3 | import { Gesture, GestureDetector } from 'react-native-gesture-handler'; |
4 | 4 | import Animated, { runOnJS, useAnimatedStyle, useSharedValue } from 'react-native-reanimated'; |
5 | 5 |
|
@@ -53,19 +53,18 @@ const ProgressControlThumb = ({ style }: { style?: StyleProp<ViewStyle> }) => { |
53 | 53 | }, |
54 | 54 | } = useTheme(); |
55 | 55 | return ( |
56 | | - <Pressable style={{ height: 40, justifyContent: 'center', width: 40 }}> |
57 | | - <View |
58 | | - style={[ |
59 | | - styles.progressControlThumbStyle, |
60 | | - { |
61 | | - backgroundColor: static_white, |
62 | | - borderColor: grey_dark, |
63 | | - shadowColor: black, |
64 | | - }, |
65 | | - style, |
66 | | - ]} |
67 | | - /> |
68 | | - </Pressable> |
| 56 | + <View |
| 57 | + hitSlop={{ bottom: 20, left: 20, right: 20, top: 20 }} |
| 58 | + style={[ |
| 59 | + styles.progressControlThumbStyle, |
| 60 | + { |
| 61 | + backgroundColor: static_white, |
| 62 | + borderColor: grey_dark, |
| 63 | + shadowColor: black, |
| 64 | + }, |
| 65 | + style, |
| 66 | + ]} |
| 67 | + /> |
69 | 68 | ); |
70 | 69 | }; |
71 | 70 |
|
|
0 commit comments