Skip to content

Commit

Permalink
Prevent spinning when user is not moving (#718)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobby Sudekum authored Oct 17, 2017
1 parent 228f708 commit 3f932cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MapboxCoreNavigation/RouteController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ open class RouteController: NSObject {
var userCourse = calculatedCourseForLocationOnStep
var userCoordinate = snappedCoordinate.coordinate

if location.course >= 0 || location.speed >= RouteControllerMinimumSpeedForLocationSnapping {
if location.course >= 0 && location.speed >= RouteControllerMinimumSpeedForLocationSnapping {
if calculatedCourseForLocationOnStep.differenceBetween(location.course) > RouteControllerMaxManipulatedCourseAngle && location.horizontalAccuracy < 20 {
userCourse = location.course

Expand Down

0 comments on commit 3f932cb

Please sign in to comment.