Skip to content

Commit

Permalink
feat: disable vertical gesture events
Browse files Browse the repository at this point in the history
  • Loading branch information
tsdmrfth committed Apr 10, 2021
1 parent 4dd5548 commit 9c5f021
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Steve.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,10 @@ export const Steve = ({ data, renderItem, keyExtractor, containerStyle }) => {
}

return (
<PanGestureHandler {...{ onGestureEvent }}>
<PanGestureHandler
activeOffsetX={[0, 0]}
{...{ onGestureEvent }}
activeOffsetY={[-Number.MAX_VALUE, Number.MAX_VALUE]}>
<Animated.View style={[styles.container, containerStyle]}>
<Items/>
</Animated.View>
Expand Down

0 comments on commit 9c5f021

Please sign in to comment.