@VisibleForTesting public static boolean isDraggingStackInWrongDirection(float downX,float downY,float x,float y,float dx,float dy,int orientation,int stackIndex){
  float switchDelta=orientation == Orientation.PORTRAIT ? x - downX : y - downY;
  if (Math.abs(dx) < Math.abs(dy)) {
    return false;
  }
  return (stackIndex == 0 && switchDelta < 0) || (stackIndex == 1 && switchDelta > 0);
}

@ VisibleForTesting public static boolean isDraggingStackInWrongDirection ( float downX , float downY , float x , float y , float dx , float dy , int orientation , int stackIndex ) { float switchDelta = orientation == Orientation . PORTRAIT ? x - downX : y - downY ; if ( Math . abs ( dx ) < Math . abs ( dy ) ) { return false ; } return ( stackIndex == 0 && switchDelta < 0 ) || ( stackIndex == 1 && switchDelta > 0 ) ; }
check if we are dragging stack in a wrong direction .
