android-auto-scroll-view-pager icon indicating copy to clipboard operation
android-auto-scroll-view-pager copied to clipboard

consumeTouch not found

Open neuyu opened this issue 8 years ago • 1 comments

AutoScrollViewPager dispatchTouchEvent consumeTouch not found

neuyu avatar Jul 12 '17 03:07 neuyu

        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();
        }

Rajeshr34 avatar Jul 14 '17 05:07 Rajeshr34