InfiniteIndicator icon indicating copy to clipboard operation
InfiniteIndicator copied to clipboard

嵌套在滚动视图(ScrollView ..)中,按住InfiniteIndicator控件滑动时松开会停止自动滚动

Open xuwj opened this issue 8 years ago • 1 comments

修复方式:在InfiniteIndicator类的dispatchTouchEvent方法中某一段代码修改如下

if (isStopScrollWhenTouch) {
            if ((action == MotionEvent.ACTION_DOWN) && isAutoScroll) {
                isStopByTouch = true;
                stop();
            } else if ((ev.getAction() == MotionEvent.ACTION_UP || ev.getAction() == MotionEvent.ACTION_CANCEL)&& isStopByTouch) {
                start();
            }
        }

xuwj avatar Jun 17 '16 14:06 xuwj

感谢你的反馈,这个应该是ScrollView拦截了事件导致,你可以提个PR ^_^

lightSky avatar Dec 22 '16 01:12 lightSky