Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xuwj opened this issue Jun 17, 2016 · 1 comment

Comments

@xuwj
Copy link

xuwj commented Jun 17, 2016

修复方式:在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();
            }
        }
@lightSky
Copy link
Owner

lightSky commented Dec 22, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants