Skip to content

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

Description

@xuwj

修复方式:在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();
            }
        }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions