Devlight / InfiniteCycleViewPager

Infinite cycle ViewPager with two-way orientation and interactive effect.
Apache License 2.0
5.75k stars 827 forks source link

Why to shield when the automatic change of the manual sliding events? #15

Closed zengcanxiang closed 8 years ago

zengcanxiang commented 8 years ago

Why to shield when the automatic change of the manual sliding events?

If you forget to click on it, I won't be able to switch to what I want, only waiting for the silly next chance next time.

If the user hasn't finished it to the operation, the waiting time will be very long.....

public boolean onTouchEvent(final MotionEvent event) {
        if (mViewPageable.getAdapter() == null || mViewPageable.getAdapter().getCount() == 0)
            return false;
        if (mIsAutoScroll || mIsInitialItem || mViewPageable.isFakeDragging()) return false;
        if (event.getPointerCount() > MIN_POINTER_COUNT || !mViewPageable.hasWindowFocus())
            event.setAction(MotionEvent.ACTION_UP);
        checkHitRect(event);
        return true;
    }
GIGAMOLE commented 8 years ago

Hello. Thanks for issue. Ok. Ill try to add delay feature later.

zengcanxiang commented 8 years ago

I think in the actual test case, if the user to touch the finger on the control, you can automatically pause the suspension is a very good experience. ^_^

GIGAMOLE commented 8 years ago

Ok. I will mind for better ux.