recyclerview-selection/src/main/java/androidx/recyclerview/selection/GestureSelectionHelper.java
@VisibleForTesting
        static boolean isPastLastItem(
                int top, int left, int right, @NonNull MotionEvent e, int direction) {
            if (direction == View.LAYOUT_DIRECTION_LTR) {
                return e.getX() > right && e.getY() > top;
            } else {
                return e.getX() < left && e.getY() > top;
            }
        }
/*
         * Check to see if MotionEvent if past a particular item, i.e. to the right or to the bottom
         * of the item.
         * For RTL, it would to be to the left or to the bottom of the item.
         */
Check to see if MotionEvent if past a particular item, i.e. to the right or to the bottom
of the item.
For RTL, it would to be to the left or to the bottom of the item.
Check to see if MotionEvent if past a particular item i . e . to the right or to the bottom of the item . For RTL it would to be to the left or to the bottom of the item .
@VisibleForTesting
        static boolean isPastLastItem(
                int top, int left, int right, @NonNull MotionEvent e, int direction) {
            if (direction == View.LAYOUT_DIRECTION_LTR) {
                return e.getX() > right && e.getY() > top;
            } else {
                return e.getX() < left && e.getY() > top;
            }
        }
@ VisibleForTesting static boolean isPastLastItem ( int top , int left , int right , @ NonNull MotionEvent e , int direction ) { if ( direction == View . LAYOUT_DIRECTION_LTR ) { return e . getX ( ) > right && e . getY ( ) > top ; } else { return e . getX ( ) < left && e . getY ( ) > top ; } }
Check to see if MotionEvent if past a particular item, i.e.
Check to see if MotionEvent if past a particular item i . e .