@CallSuper protected boolean runCheck(){
  if (!isValid()) {
    reset();
    return false;
  }
  long currentTime=System.currentTimeMillis();
  long duration=mLastCheckTime > 0 ? currentTime - mLastCheckTime : 0;
  mLastCheckTime=currentTime;
  if (isStarted() && mLastScrollY != Integer.MAX_VALUE) {
    mVelocityY=(float)(mScrollingViewAccessor.computeVerticalScrollOffset() - mLastScrollY) * 1000 / duration;
  }
  if (isStarted() && mLastScrollX != Integer.MAX_VALUE) {
    mVelocityX=(float)(mScrollingViewAccessor.computeHorizontalScrollOffset() - mLastScrollX) * 1000 / duration;
  }
  if (DesignConfig.DEBUG_COORDINATOR) {
    Log.v(TAG,"runCheck, current " + mScrollingViewAccessor.computeVerticalScrollOffset() + ", last "+ mLastScrollY+ ", duration "+ duration+ ", velocity "+ mVelocityY+ ", view "+ mScrollingViewAccessor);
  }
  boolean scrollingFinished=scrollingFinished(SCROLL_AXES_ALL);
  if (scrollingFinished && (mNoneScrollingTime-=duration) > 0) {
    reset();
    return false;
  }
  return true;
}

@ CallSuper protected boolean runCheck ( ) { if ( ! isValid ( ) ) { reset ( ) ; return false ; } long currentTime = System . currentTimeMillis ( ) ; long duration = mLastCheckTime > 0 ? currentTime - mLastCheckTime : 0 ; mLastCheckTime = currentTime ; if ( isStarted ( ) && mLastScrollY != Integer . MAX_VALUE ) { mVelocityY = ( float ) ( mScrollingViewAccessor . computeVerticalScrollOffset ( ) - mLastScrollY ) * 1000 / duration ; } if ( isStarted ( ) && mLastScrollX != Integer . MAX_VALUE ) { mVelocityX = ( float ) ( mScrollingViewAccessor . computeHorizontalScrollOffset ( ) - mLastScrollX ) * 1000 / duration ; } if ( DesignConfig . DEBUG_COORDINATOR ) { Log . v ( TAG , "runCheck, current " + mScrollingViewAccessor . computeVerticalScrollOffset ( ) + ", last " + mLastScrollY + ", duration " + duration + ", velocity " + mVelocityY + ", view " + mScrollingViewAccessor ) ; } boolean scrollingFinished = scrollingFinished ( SCROLL_AXES_ALL ) ; if ( scrollingFinished && ( mNoneScrollingTime -= duration ) > 0 ) { reset ( ) ; return false ; } return true ; }
check if still scrolling .
