Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

[ios] Remove double counting of content inset top and bottom #6566

Merged
merged 1 commit into from
Oct 4, 2016

Conversation

boundsj
Copy link
Contributor

@boundsj boundsj commented Oct 4, 2016

This removes the calls to top and bottom for content inset of the map view when calculating the edge padding for following. #6313 added this along with the left and right values.

The correction in this PR eliminates a bug where the map did not scroll to the correct location for the user dot (it was several points off on the y axis) and also a bug in didUpdateLocationWithUserTrackingAnimated: where the map panning operations would always occur because the current and correct points never matched up even if a stream of location values that were the same were processed.

cc @1ec5 @friedbunny

This removes the calls to top and bottom for content inset of the
map view when calculating the edge padding for following. A previous
commit added this along with the left and right values. This
eliminates a bug where the map did not scroll to the correct location
for the user dot and also a bug in
`didUpdateLocationWithUserTrackingAnimated:` where the map panning
operations would always occur because the current and correct points
never matched up even if a stream of location values that were the
same were processed.
@boundsj boundsj added bug iOS Mapbox Maps SDK for iOS labels Oct 4, 2016
@boundsj boundsj self-assigned this Oct 4, 2016
@mention-bot
Copy link

@boundsj, thanks for your PR! By analyzing the history of the files in this pull request, we identified @1ec5, @incanus and @friedbunny to be potential reviewers.

Copy link
Contributor

@1ec5 1ec5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My head hurts, but this looks correct.

@boundsj boundsj merged commit 26c32f5 into master Oct 4, 2016
@boundsj boundsj deleted the boundsj-fix-edge-padding-inset-double-counting branch October 4, 2016 00:21
@friedbunny friedbunny added this to the ios-v3.4.0 milestone Oct 4, 2016
@1ec5 1ec5 mentioned this pull request Nov 8, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants