private boolean checkIfScrolling(float[] lastPoints,MotionEvent ev){
  float[] point=new float[2];
  point[0]=ev.getRawX();
  point[1]=ev.getRawY();
  float delta=getDistance(lastPoints,point);
  return Math.abs(delta) > mSlop;
}

private boolean checkIfScrolling ( float [ ] lastPoints , MotionEvent ev ) { float [ ] point = new float [ 2 ] ; point [ 0 ] = ev . getRawX ( ) ; point [ 1 ] = ev . getRawY ( ) ; float delta = getDistance ( lastPoints , point ) ; return Math . abs ( delta ) > mSlop ; }
checks to see if the user is currently scrolling the menu .
