[bugfix] Tab: swipe-threshold less than 4 (#2128)

This commit is contained in:
neverland 2018-11-23 19:53:09 +08:00 committed by GitHub
parent d84b13a6cc
commit 56231d90bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -423,6 +423,10 @@ export default create({
}
}
if (this.scrollable) {
style.flexBasis = 88 / (this.swipeThreshold) + '%';
}
return style;
}
}