private boolean ensureScrollWheelAdjusted(){
  int delta=mInitialScrollOffset - mCurrentScrollOffset;
  if (delta != 0) {
    if (Math.abs(delta) > mSelectorElementSize / 2) {
      delta+=(delta > 0) ? -mSelectorElementSize : mSelectorElementSize;
    }
    if (isHorizontalMode()) {
      mPreviousScrollerX=0;
      mAdjustScroller.startScroll(0,0,delta,0,SELECTOR_ADJUSTMENT_DURATION_MILLIS);
    }
 else {
      mPreviousScrollerY=0;
      mAdjustScroller.startScroll(0,0,0,delta,SELECTOR_ADJUSTMENT_DURATION_MILLIS);
    }
    invalidate();
    return true;
  }
  return false;
}

private boolean ensureScrollWheelAdjusted ( ) { int delta = mInitialScrollOffset - mCurrentScrollOffset ; if ( delta != 0 ) { if ( Math . abs ( delta ) > mSelectorElementSize / 2 ) { delta += ( delta > 0 ) ? - mSelectorElementSize : mSelectorElementSize ; } if ( isHorizontalMode ( ) ) { mPreviousScrollerX = 0 ; mAdjustScroller . startScroll ( 0 , 0 , delta , 0 , SELECTOR_ADJUSTMENT_DURATION_MILLIS ) ; } else { mPreviousScrollerY = 0 ; mAdjustScroller . startScroll ( 0 , 0 , 0 , delta , SELECTOR_ADJUSTMENT_DURATION_MILLIS ) ; } invalidate ( ) ; return true ; } return false ; }
ensures that the scroll wheel is adjusted i . e . there is no offset and the middle element is in the middle of the widget .
