{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/2027","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/2027/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/2027/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/2027/events","html_url":"https://github.com/mapbox/mapbox-gl-native/pull/2027","id":100156000,"number":2027,"title":"Don't disable user tracking on `setDirection:` or quick zoom gesture","user":{"login":"friedbunny","id":1198851,"avatar_url":"https://avatars.githubusercontent.com/u/1198851?v=3","gravatar_id":"","url":"https://api.github.com/users/friedbunny","html_url":"https://github.com/friedbunny","followers_url":"https://api.github.com/users/friedbunny/followers","following_url":"https://api.github.com/users/friedbunny/following{/other_user}","gists_url":"https://api.github.com/users/friedbunny/gists{/gist_id}","starred_url":"https://api.github.com/users/friedbunny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/friedbunny/subscriptions","organizations_url":"https://api.github.com/users/friedbunny/orgs","repos_url":"https://api.github.com/users/friedbunny/repos","events_url":"https://api.github.com/users/friedbunny/events{/privacy}","received_events_url":"https://api.github.com/users/friedbunny/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/in%20progress","name":"in progress","color":"ededed"},{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/iOS","name":"iOS","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-10T20:01:21Z","updated_at":"2015-10-05T17:27:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/pulls/2027","html_url":"https://github.com/mapbox/mapbox-gl-native/pull/2027","diff_url":"https://github.com/mapbox/mapbox-gl-native/pull/2027.diff","patch_url":"https://github.com/mapbox/mapbox-gl-native/pull/2027.patch"},"body":"The user location tracking mode would be reset on `setDirection:`/`setDirection:animated:` — this is undesirable and has been changed to retain tracking.\r\n\r\nThe tracking mode would also be reset unnecessarily during the double-tap-hold-move-up-and-down quick-zoom gesture. This gesture now keeps tracking the user, though not while they're actively performing the gesture (it catches up when the zoom is over, even if the gesture is still being held).\r\n\r\nFixes #1644.\r\n\r\n/cc @1ec5 @incanus"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/comments/145605390","html_url":"https://github.com/mapbox/mapbox-gl-native/pull/2027#issuecomment-145605390","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/2027","id":145605390,"user":{"login":"friedbunny","id":1198851,"avatar_url":"https://avatars.githubusercontent.com/u/1198851?v=3","gravatar_id":"","url":"https://api.github.com/users/friedbunny","html_url":"https://github.com/friedbunny","followers_url":"https://api.github.com/users/friedbunny/followers","following_url":"https://api.github.com/users/friedbunny/following{/other_user}","gists_url":"https://api.github.com/users/friedbunny/gists{/gist_id}","starred_url":"https://api.github.com/users/friedbunny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/friedbunny/subscriptions","organizations_url":"https://api.github.com/users/friedbunny/orgs","repos_url":"https://api.github.com/users/friedbunny/repos","events_url":"https://api.github.com/users/friedbunny/events{/privacy}","received_events_url":"https://api.github.com/users/friedbunny/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T17:27:31Z","updated_at":"2015-10-05T17:27:31Z","body":"The quick zoom gesture [only modifies the scale](https://github.com/mapbox/mapbox-gl-native/blob/b406c942df3293f12415d24d03ef17eb44847c88/platform/ios/MGLMapView.mm#L1385) of the map and always zooms in/out of the current center of the viewport.\r\n\r\nIf the center changes during a quick zoom (e.g., the location updated during tracking) the map will try to move to that new center, but there's a possibility the ongoing gesture animation could clobber the center-change animation. Once the gesture pauses or finishes, the center is free to update.\r\n\r\nThis seems acceptable to me, if not ideal."}}