Skip to content

Commit

Permalink
添加需求:当手动滑动切换时,轮播重新记时
Browse files Browse the repository at this point in the history
  • Loading branch information
pinguo-zhouwei committed Jun 9, 2018
1 parent cc138b6 commit 99ccc63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mzbanner/src/main/java/com/zhouwei/mzbanner/MZBannerView.java
Original file line number Diff line number Diff line change
Expand Up @@ -258,11 +258,11 @@ public boolean dispatchTouchEvent(MotionEvent ev) {
float touchX = ev.getRawX();
// 如果是魅族模式,去除两边的区域
if(touchX >= paddingLeft && touchX < getScreenWidth(getContext()) - paddingLeft){
mIsAutoPlay = false;
pause();
}
break;
case MotionEvent.ACTION_UP:
mIsAutoPlay = true;
start();
break;
}
return super.dispatchTouchEvent(ev);
Expand Down

0 comments on commit 99ccc63

Please sign in to comment.