Skip to content

Commit 102942a

Browse files
author
Zack Story
committed
do not set overlay when close
1 parent d46b467 commit 102942a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ class Drawer extends Component {
383383
{this.props.children}
384384
{this.captureGestures !== false
385385
? <View
386-
pointerEvents={ this.shouldCaptureGestures() ? 'auto' : 'none' }
386+
pointerEvents={ this._open && this.shouldCaptureGestures() ? 'auto' : 'none' }
387387
ref={c => this.mainOverlay = c}
388388
style={[styles.mainOverlay, this.props.styles && this.props.styles.mainOverlay]}
389389
/>

0 commit comments

Comments
 (0)