private void checkInMoving(float x,float y){
  final int xDiff=(int)Math.abs(x - lastMotionX);
  final int yDiff=(int)Math.abs(y - lastMotionY);
  final int touchSlop=this.touchSlop;
  boolean xMoved=xDiff > touchSlop;
  boolean yMoved=yDiff > touchSlop;
  if (xMoved) {
    touchState=TOUCH_STATE_SCROLLING_X;
    lastMotionX=x;
    lastMotionY=y;
  }
  if (yMoved) {
    touchState=TOUCH_STATE_SCROLLING_Y;
    lastMotionX=x;
    lastMotionY=y;
  }
}

private void checkInMoving ( float x , float y ) { final int xDiff = ( int ) Math . abs ( x - lastMotionX ) ; final int yDiff = ( int ) Math . abs ( y - lastMotionY ) ; final int touchSlop = this . touchSlop ; boolean xMoved = xDiff > touchSlop ; boolean yMoved = yDiff > touchSlop ; if ( xMoved ) { touchState = TOUCH_STATE_SCROLLING_X ; lastMotionX = x ; lastMotionY = y ; } if ( yMoved ) { touchState = TOUCH_STATE_SCROLLING_Y ; lastMotionX = x ; lastMotionY = y ; } }
check if the user is moving the cell
