From a6c09e15ff7eea41129285e5c0144211f4adbcac Mon Sep 17 00:00:00 2001 From: WingGao Date: Tue, 31 Mar 2020 18:17:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=BB=91=E5=8A=A8=E5=92=8Cpan=E5=86=B2?= =?UTF-8?q?=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Tabs.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Tabs.tsx b/src/Tabs.tsx index 6f97ac6..a262375 100644 --- a/src/Tabs.tsx +++ b/src/Tabs.tsx @@ -254,14 +254,14 @@ export class Tabs extends Component { ...this.getTabBarBaseProps(), }; - const onPan = !isTabVertical && useOnPan ? this.onPan : {}; - + const onPan = !isTabVertical && useOnPan ? this.onPan : null; + const onSwipe = onPan ? null : this.onSwipe const content = [
{this.renderTabBar(tabBarProps, DefaultTabBar)}
, !noRenderContent && {this.renderContent()}