We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7ead10 commit 2929bfbCopy full SHA for 2929bfb
Sources/MapboxCoreNavigation/RouteController.swift
@@ -315,8 +315,8 @@ open class RouteController: NSObject {
315
if newLegIndex != progress.legIndex {
316
progress.legIndex = newLegIndex
317
}
318
-
319
- if newStepIndex != progress.currentLegProgress.stepIndex {
+
+ if (newStepIndex != progress.currentLegProgress.stepIndex) && (newStepIndex < progress.currentLeg.steps.endIndex) {
320
progress.currentLegProgress.stepIndex = newStepIndex
321
322
0 commit comments