recyclerview-selection/src/main/java/androidx/recyclerview/selection/GestureSelectionHelper.java
private void handleMoveEvent(@NonNull MotionEvent e) {
        mLastInterceptedPoint = MotionEvents.getOrigin(e);

        int lastGlidedItemPos = mView.getLastGlidedItemPosition(e);
        if (lastGlidedItemPos != RecyclerView.NO_POSITION) {
            extendSelection(lastGlidedItemPos);
        }

        mScroller.scroll(mLastInterceptedPoint);
    }
// At this point, we are sure user wants to gesture multi-select.
At this point, we are sure user wants to gesture multi-select.
At this point we are sure user wants to gesture multi - select .
private void handleMoveEvent(@NonNull MotionEvent e) {
        mLastInterceptedPoint = MotionEvents.getOrigin(e);
        int lastGlidedItemPos = mView.getLastGlidedItemPosition(e);
        if (lastGlidedItemPos != RecyclerView.NO_POSITION) {
            extendSelection(lastGlidedItemPos);
        }
        mScroller.scroll(mLastInterceptedPoint);
    }
private void handleMoveEvent ( @ NonNull MotionEvent e ) { mLastInterceptedPoint = MotionEvents . getOrigin ( e ) ; int lastGlidedItemPos = mView . getLastGlidedItemPosition ( e ) ; if ( lastGlidedItemPos != RecyclerView . NO_POSITION ) { extendSelection ( lastGlidedItemPos ) ; } mScroller . scroll ( mLastInterceptedPoint ) ; }
At this point, we are sure user wants to gesture multi-select.
At this point we are sure user wants to gesture multi - select .