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