HorizontalViewPagerWebView icon indicating copy to clipboard operation
HorizontalViewPagerWebView copied to clipboard

sometimes view pager can not do well

Open dadahu opened this issue 6 years ago • 0 comments

hi, you code is help for me, but i found a bug;

1, scroll can scroll part of area(like amazon product images) in webview; 2, then only first time scroll other part of area, viewpager can not change pager.

the reason is , when 1 after ,isPagingEnabled is set false; then at 2 onInterceptTouchEvent() be called , but action MotionEvent.ACTION_DOWN is can not called super.onInterceptTouchEvent(event).

i am modified code like this is do well . are you sure it .

int CustomViewPager.java class,

public boolean onInterceptTouchEvent(MotionEvent event) { ----------------------------add code ----------------------- if (event.getAction() == MotionEvent.ACTION_DOWN) { return super.onInterceptTouchEvent(event); } ----------------------------add code ----------------------- return this.isPagingEnabled && super.onInterceptTouchEvent(event); }

dadahu avatar Apr 13 '18 06:04 dadahu