Skip to content

Commit

Permalink
fix: swipeable not work with android fixes: ant-design#380
Browse files Browse the repository at this point in the history
  • Loading branch information
BANG88 committed Mar 15, 2019
1 parent 29754a8 commit a62f370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/tabs/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class Tabs extends React.PureComponent<TabsProps, StateType> {
key="$content"
keyboardDismissMode="on-drag"
initialPage={currentTab}
scrollEnabled={usePaged}
scrollEnabled={this.props.swipeable || usePaged}
onPageScroll={e => {
this.state.scrollX.setValue(
e.nativeEvent.position * this.state.containerWidth,
Expand Down

0 comments on commit a62f370

Please sign in to comment.