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

[ios] Limit annotation view pan gesture check to own recognizer #5813

Merged
merged 1 commit into from Jul 28, 2016

Conversation

friedbunny
Copy link
Contributor

@friedbunny friedbunny commented Jul 27, 2016

Fixes #5539. Allows non-dragging pan gestures that are initiated on view annotations to pan the underlying map.

(This PR is now filed against the v3.3.0 release branch and supersedes #5812.)

Annotation views each have long press and pan gesture recognizers. If a view is not draggable or not in a positive dragging state, the pan gesture recognizer should not begin. This commit makes the criteria for rejecting pans more strict — only _panGestureRecognizer should be rejected, not the entire UIPanGestureRecognizer class.

/cc @frederoni @1ec5

Allows non-dragging pans that are initiated on views to pan the underlying map.

Annotation views each have long press and pan gesture recognizers. If a
view is not draggable or not in a positive dragging state, the pan
gesture recognizer should not begin. This commit makes the criteria for
rejecting pans more strict — only `_panGestureRecognizer` should be
rejected, not the entire `UIPanGestureRecognizer` class.
@friedbunny friedbunny added bug iOS Mapbox Maps SDK for iOS annotations Annotations on iOS and macOS or markers on Android labels Jul 27, 2016
@friedbunny friedbunny added this to the ios-v3.3.2 milestone Jul 27, 2016
@friedbunny friedbunny self-assigned this Jul 27, 2016
@mention-bot
Copy link

@friedbunny, thanks for your PR! By analyzing this pull request, we identified @bleege, @1ec5 and @boundsj to be potential reviewers.

@friedbunny
Copy link
Contributor Author

I did not know that coveralls could fail:

Coverage decreased (-8.0%) to 68.409%

... master has significantly diverged and it’s comparing this release branch unfavorably against a bunch of new code. Going to ignore this slanderous mistake.

@1ec5
Copy link
Contributor

1ec5 commented Jul 28, 2016

👍

@friedbunny friedbunny merged commit bc845b9 into release-ios-v3.3.0 Jul 28, 2016
@friedbunny friedbunny deleted the fb-pan-on-annotation-views branch July 28, 2016 06:32
1ec5 added a commit that referenced this pull request Jul 28, 2016
#5791 affects iOS 7.x, not 8.1 or 8.2. Describe #5813 in simpler terms.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
annotations Annotations on iOS and macOS or markers on Android bug iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants