react-component / m-tabs

React Mobile Tabs Component (web & react-native)
http://react-component.github.io/m-tabs/
143 stars 47 forks source link

Is there any way to lock the swipe direction? #7

Open hhking opened 7 years ago

hhking commented 7 years ago

when swipe left to right, it also can swipe top to bottom, and this may cause problems in iOS(test in iOS 11). so is there any way to lock the swipe direction?When swipe to switch tabs , it should not scroll.

zhang740 commented 7 years ago

cc @paranoidjk

paranoidjk commented 7 years ago

@zhang740 try direction api https://github.com/react-component/gesture#common-props

I am not sure if it works fine.

ziluo commented 6 years ago

这个问题应该在 https://github.com/react-component/m-tabs/pull/19 修复掉了