Skip to content

consumeTouch not found #40

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

Open
neuyu opened this issue Jul 12, 2017 · 1 comment
Open

consumeTouch not found #40

neuyu opened this issue Jul 12, 2017 · 1 comment

Comments

@neuyu
Copy link

neuyu commented Jul 12, 2017

AutoScrollViewPager dispatchTouchEvent consumeTouch not found

@neuyu neuyu changed the title consumeTouch consumeTouch not found Jul 12, 2017
@Rajeshr34
Copy link

        boolean consumeTouch = false;
        if (action == MotionEvent.ACTION_DOWN) {
            touchY = ev.getY();
        } else if (action == MotionEvent.ACTION_UP) {
            consumeTouch = Math.abs(touchY - ev.getY()) > 0;
        }

        if (consumeTouch) {
            getParent().requestDisallowInterceptTouchEvent(true);
        } else {
            getParent().requestDisallowInterceptTouchEvent(false);
            if (stopScrollWhenTouch)
                startAutoScroll();
        }

akslive added a commit to akslive/android-auto-scroll-view-pager that referenced this issue Sep 25, 2017
fixed Trinea#40 consumeTouch not found
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