Open garrettg123 opened 2 years ago
@garrett-gottlieb Thanks for reporting! We'll look into this.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@surajahmed
Modal of react native is the same, can't slide
<Modal
animationType="fade"
transparent={true}
visible={visible}
supportedOrientations={['portrait', 'landscape', 'landscape-left', 'landscape-right']}
onDismiss={() => setVisible(false)}
statusBarTranslucent={true}
onRequestClose={() => setVisible(false)}
>
<Slider
onTouchStart={e => {
console.log('Slider touch started')
// e.stopPropagation()
// e.preventDefault()
// return true
}}
onTouchMove={e => {
console.log('Slider touch moved')
// e.stopPropagation()
// e.preventDefault()
// return true
}}
// onStartShouldSetResponder={() => true}
// onMoveShouldSetResponder={() => true}
onTouchCancel={() => {
console.log('Canceled changing slider position')
}}
>
<Slider.Track bg="trueGray.300">
<Slider.FilledTrack />
</Slider.Track>
<Slider.Thumb />
</Slider>
</Modal>
Are there any updates for it?
Description
Dragging the
<Slider.Thumb>
doesn't capture the touch move and it bubbles up to the parent screen. When this is a modal, it starts moving because modals can be dragged down to close, and then it also cancels the slider thumb panning.CodeSandbox/Snack link
none
Steps to reproduce
React Navigation setup:
NowPlayingScreen:
All the commented parts were tested and failed to capture the pan responding.
NativeBase Version
^3.3.7
Platform
Other Platform
No response
Additional Information
No response