getScrollingDirection method

int getScrollingDirection(
  1. double touchMovementDeltaY
)

Implementation

int getScrollingDirection(double touchMovementDeltaY) {
  if (touchMovementDeltaY < 0) {
    return _SCROLL_DIRECTION_UP;
  } else if (touchMovementDeltaY > 0) {
    return _SCROLL_DIRECTION_DOWN;
  } else {
    return _SCROLL_DIRECTION_NONE;
  }
}