{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-navigation-ios/issues/266","repository_url":"https://api.github.com/repos/mapbox/mapbox-navigation-ios","labels_url":"https://api.github.com/repos/mapbox/mapbox-navigation-ios/issues/266/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-navigation-ios/issues/266/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-navigation-ios/issues/266/events","html_url":"https://github.com/mapbox/mapbox-navigation-ios/pull/266","id":234334228,"number":266,"title":"Fix maneuver swiping","user":{"login":"bsudekum","id":1058624,"avatar_url":"https://avatars3.githubusercontent.com/u/1058624?v=3","gravatar_id":"","url":"https://api.github.com/users/bsudekum","html_url":"https://github.com/bsudekum","followers_url":"https://api.github.com/users/bsudekum/followers","following_url":"https://api.github.com/users/bsudekum/following{/other_user}","gists_url":"https://api.github.com/users/bsudekum/gists{/gist_id}","starred_url":"https://api.github.com/users/bsudekum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsudekum/subscriptions","organizations_url":"https://api.github.com/users/bsudekum/orgs","repos_url":"https://api.github.com/users/bsudekum/repos","events_url":"https://api.github.com/users/bsudekum/events{/privacy}","received_events_url":"https://api.github.com/users/bsudekum/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-06-07T20:35:55Z","updated_at":"2017-06-08T00:59:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mapbox/mapbox-navigation-ios/pulls/266","html_url":"https://github.com/mapbox/mapbox-navigation-ios/pull/266","diff_url":"https://github.com/mapbox/mapbox-navigation-ios/pull/266.diff","patch_url":"https://github.com/mapbox/mapbox-navigation-ios/pull/266.patch"},"body":"Swiping the maneuver list suffers from two issues:\r\n\r\n* The current step shows up twice\r\n* Swiping backwards can jump from x index all the way to the current step\r\n\r\n@frederoni I'm not really certain why this code was here or why it fixed both the issues above, but it does ¯\\_(ツ)_/¯."},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-navigation-ios/issues/comments/306967760","html_url":"https://github.com/mapbox/mapbox-navigation-ios/pull/266#issuecomment-306967760","issue_url":"https://api.github.com/repos/mapbox/mapbox-navigation-ios/issues/266","id":306967760,"user":{"login":"frederoni","id":764476,"avatar_url":"https://avatars2.githubusercontent.com/u/764476?v=3","gravatar_id":"","url":"https://api.github.com/users/frederoni","html_url":"https://github.com/frederoni","followers_url":"https://api.github.com/users/frederoni/followers","following_url":"https://api.github.com/users/frederoni/following{/other_user}","gists_url":"https://api.github.com/users/frederoni/gists{/gist_id}","starred_url":"https://api.github.com/users/frederoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frederoni/subscriptions","organizations_url":"https://api.github.com/users/frederoni/orgs","repos_url":"https://api.github.com/users/frederoni/repos","events_url":"https://api.github.com/users/frederoni/events{/privacy}","received_events_url":"https://api.github.com/users/frederoni/received_events","type":"User","site_admin":false},"created_at":"2017-06-08T00:59:26Z","updated_at":"2017-06-08T00:59:26Z","body":"Oh, if that's the case we should remove all refs to currentManeuverPage since it doesn't fill its purpose. Replace the [guard](https://github.com/mapbox/mapbox-navigation-ios/blob/master/MapboxNavigation/RouteMapViewController.swift#L207) with\r\n```swift\r\nguard let controller = routePageViewController.viewControllers?.first as? RouteManeuverViewController else { return }\r\n```\r\n\r\n"}}
{"actor":{"display_login":"frederoni"}}