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

Commit

Permalink
avoid altering annotation view transforms if not draggable
Browse files Browse the repository at this point in the history
  • Loading branch information
incanus committed Aug 26, 2016
1 parent 05ba97b commit 1fbfc73
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions platform/ios/src/MGLAnnotationView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ - (void)setScalesWithViewingDistance:(BOOL)scalesWithViewingDistance

- (void)updateTransform
{
// Omit applying a new transformation if not draggable so as to not interfere with user transforms.
if (self.draggable == NO)
{
return;
}

// Omit applying a new transformation while the view is being dragged.
if (self.dragState == MGLAnnotationViewDragStateDragging)
{
Expand Down

0 comments on commit 1fbfc73

Please sign in to comment.