Skip to content

Commit

Permalink
Merge pull request #484 from shaodahong/patch-1
Browse files Browse the repository at this point in the history
fix(tabs): 修复右滑返回上一页触发滑动页面的 bug
  • Loading branch information
jimczj authored Mar 22, 2019
2 parents 2be79d0 + ae87341 commit b01bd99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/tabs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default class AtTabs extends AtComponent {
const moveDistance = touchMove - this._touchDot
const maxIndex = tabList.length

if (!this._isMoving && this._interval < MAX_INTERVAL) {
if (!this._isMoving && this._interval < MAX_INTERVAL && this._touchDot > 20) {
// 向左滑动
if (current + 1 < maxIndex && moveDistance <= -MIN_DISTANCE) {
this._isMoving = true
Expand Down

0 comments on commit b01bd99

Please sign in to comment.