compat/src/main/java/androidx/core/widget/AutoScrollHelper.java
boolean shouldAnimate() {
        final ClampedScroller scroller = mScroller;
        final int verticalDirection = scroller.getVerticalDirection();
        final int horizontalDirection = scroller.getHorizontalDirection();

        return (verticalDirection != 0 && canTargetScrollVertically(verticalDirection))
                || (horizontalDirection != 0 && canTargetScrollHorizontally(horizontalDirection));
    }
/**
     * @return whether the target is able to scroll in the requested direction
     */
@return whether the target is able to scroll in the requested direction
@return whether the target is able to scroll in the requested direction
boolean shouldAnimate() {
        final ClampedScroller scroller = mScroller;
        final int verticalDirection = scroller.getVerticalDirection();
        final int horizontalDirection = scroller.getHorizontalDirection();
        return (verticalDirection != 0 && canTargetScrollVertically(verticalDirection))
                || (horizontalDirection != 0 && canTargetScrollHorizontally(horizontalDirection));
    }
boolean shouldAnimate ( ) { final ClampedScroller scroller = mScroller ; final int verticalDirection = scroller . getVerticalDirection ( ) ; final int horizontalDirection = scroller . getHorizontalDirection ( ) ; return ( verticalDirection != 0 && canTargetScrollVertically ( verticalDirection ) ) || ( horizontalDirection != 0 && canTargetScrollHorizontally ( horizontalDirection ) ) ; }
@return whether the target is able to scroll in the requested direction
@return whether the target is able to scroll in the requested direction