Make the nearest point calculation on the ScrollList orientation agnostic