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

onScrollStateChanged never get called #18

Closed
wuketidai opened this issue Jan 1, 2014 · 0 comments · Fixed by #29
Closed

onScrollStateChanged never get called #18

wuketidai opened this issue Jan 1, 2014 · 0 comments · Fixed by #29
Assignees
Labels
Milestone

Comments

@wuketidai
Copy link

I set a OnScrollListener on StaggeredGrid, but the listener never get called. So i dive into source code and find that newState always equal to mTouchMode.

void reportScrollStateChange(int newState) {
        Log.d("staggeredGrid", "newState = " + newState + " mTouchMode = " + mTouchMode);
        if (newState != mTouchMode) {
            mTouchMode = newState;
            if (mOnScrollListener != null) {
                mOnScrollListener.onScrollStateChanged(this, newState);
            }
        }
    }
@ghost ghost assigned denizmveli Jan 5, 2014
denizmveli added a commit that referenced this issue Feb 1, 2014
Merged pull request #29 - Fixes #18 onScrollStateChanged never get called
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants