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

Commit 1fbfc73

Browse files
committed
avoid altering annotation view transforms if not draggable
1 parent 05ba97b commit 1fbfc73

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

platform/ios/src/MGLAnnotationView.mm

+6
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ - (void)setScalesWithViewingDistance:(BOOL)scalesWithViewingDistance
8282

8383
- (void)updateTransform
8484
{
85+
// Omit applying a new transformation if not draggable so as to not interfere with user transforms.
86+
if (self.draggable == NO)
87+
{
88+
return;
89+
}
90+
8591
// Omit applying a new transformation while the view is being dragged.
8692
if (self.dragState == MGLAnnotationViewDragStateDragging)
8793
{

0 commit comments

Comments
 (0)