File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -198,11 +198,12 @@ class Drawer extends Component {
198198 if ( inMask ) {
199199 let toggled = this . processTapGestures ( )
200200 if ( toggled ) return false
201- if ( this . props . captureGestures ) return true
201+ if ( this . props . captureGestures && this . props . acceptPan ) return true
202202 }
203203 if ( this . props . negotiatePan ) return false
204204 this . _panStartTime = Date . now ( )
205205 if ( ! inMask ) return false
206+ if ( ! this . props . acceptPan ) return false
206207 this . terminateActiveTween ( )
207208 return true
208209 } ;
@@ -215,6 +216,7 @@ class Drawer extends Component {
215216 handleMoveShouldSetPanResponder ( e , gestureState ) {
216217 let inMask = this . testPanResponderMask ( e , gestureState )
217218 if ( ! inMask ) return false
219+ if ( ! this . props . acceptPan ) return false
218220
219221 if ( ! this . props . negotiatePan || this . props . disabled || ! this . props . acceptPan || this . _panning ) return false
220222 let swipeToLeft = ( gestureState . dx < 0 ) ? true : false
You can’t perform that action at this time.
0 commit comments