hanford / react-drag-drawer

A responsive mobile drawer that is draggable on mobile, and falls back to a modal on desktop
163 stars 31 forks source link

Swipe down in mobile closes drawer #21

Open lchandramohan opened 5 years ago

lchandramohan commented 5 years ago

Hi,

I am currently developing reactjs application which used as a webview in Hybrid Mobile Application.

My Reactjs application using React-Drag-drawer. My drawer is having more content with scroll.

But I am facing weird issue that Scrolling up(swipe up) is working fine but when i scrolling down, drawer is closing in mobile.

Please help me to resolve this issue.

This issue is same as #18. Please reply if anyone fixed the issue.

<Drawer open={open} onRequestClose={this.toggle} direction='bottom' modalElementClass="points-slide-wrapper" > </Drawer>

toggle = () => { let toggle = this.state.toggle; this.setState({ toggle: !toggle }) }

.points-slide-wrapper { height: 95%; bottom: 0%; margin: auto; width: 100%; padding-top: 130px; z-index: 60000; display: none; text-align: center; -webkit-overflow-scrolling: touch; }

nimahkh commented 3 years ago

I have this problem also and checked the demo , my code is exactly same with demo, but it is not working @hanford

dmarczal commented 2 years ago

@nimahkh Same problem here. Have you found the fix?