diff --git a/mzbanner/src/main/java/com/zhouwei/mzbanner/MZBannerView.java b/mzbanner/src/main/java/com/zhouwei/mzbanner/MZBannerView.java index a3c0a78..fd56a69 100644 --- a/mzbanner/src/main/java/com/zhouwei/mzbanner/MZBannerView.java +++ b/mzbanner/src/main/java/com/zhouwei/mzbanner/MZBannerView.java @@ -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);