[ios] Omit accuracy halo from annotation hit testing (#5816)
Fixes #5571.
This commit is contained in:
@@ -6,6 +6,7 @@ Mapbox welcomes participation and contributions from everyone. Please read [CON
|
||||
|
||||
* Fixed a crash that occurred when initializing an MGLMapView on iOS 8.1 or below. ([#5791](https://github.com/mapbox/mapbox-gl-native/pull/5791))
|
||||
* Fixed an issue where pan gestures that originated on view annotations would not pan the underlying map. ([#5813](https://github.com/mapbox/mapbox-gl-native/pull/5813))
|
||||
* Fixed an issue that caused the user dot to be selected when tapping an annotation that lies within the user dot’s accuracy circle. ([#5816](https://github.com/mapbox/mapbox-gl-native/pull/5816))
|
||||
|
||||
## 3.3.1
|
||||
|
||||
|
||||
@@ -1394,8 +1394,8 @@ mbgl::Duration MGLDurationInSeconds(NSTimeInterval duration)
|
||||
|
||||
CGPoint tapPoint = [singleTap locationInView:self];
|
||||
|
||||
if (self.userLocationVisible
|
||||
&& [self.userLocationAnnotationView.layer.presentationLayer hitTest:tapPoint])
|
||||
CALayer *hitLayer = self.userLocationVisible ? [self.userLocationAnnotationView.layer.presentationLayer hitTest:tapPoint] : nil;
|
||||
if (hitLayer && hitLayer != self.userLocationAnnotationView.haloLayer.presentationLayer)
|
||||
{
|
||||
if ( ! _userLocationAnnotationIsSelected)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user