Function isValidScrollDirection

Returns true if the given string is a valid scroll direction.