We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Bug with swipe viewHolder left or right. Not correcty work onTouchEvent
The text was updated successfully, but these errors were encountered:
public class WaveVerticalSwipeToRefresh extends WaveSwipeRefreshLayout { private int mTouchSlop; private float mPrevX; public WaveVerticalSwipeToRefresh(Context context, AttributeSet attrs) { super(context, attrs); mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); } @Override public boolean onInterceptTouchEvent(MotionEvent event) { switch (event.getAction()) { case MotionEvent.ACTION_DOWN: mPrevX = MotionEvent.obtain(event).getX(); break; case MotionEvent.ACTION_MOVE: final float eventX = event.getX(); float xDiff = Math.abs(eventX - mPrevX); if (xDiff > mTouchSlop) { return false; } } return super.onInterceptTouchEvent(event); } }
Sorry, something went wrong.
No branches or pull requests
Bug with swipe viewHolder left or right. Not correcty work onTouchEvent
The text was updated successfully, but these errors were encountered: