neighbourScrollDirection method

int neighbourScrollDirection(
  1. double neighbourDistance
)

Implementation

int neighbourScrollDirection(double neighbourDistance) {
  int neighbourScrollDirection = 0;
  if (neighbourDistance > 0) {
    neighbourScrollDirection = 1;
  } else {
    neighbourScrollDirection = -1;
  }
  return neighbourScrollDirection;
}