Notify map change on pinch as well

This commit is contained in:
Maciej Swic
2015-09-21 13:14:35 +02:00
parent c1f425731c
commit ffb2ccde1c

View File

@@ -960,6 +960,8 @@ std::chrono::steady_clock::duration secondsAsDuration(float duration)
if (log2(newScale) < _mbglMap->getMinZoom()) return;
_mbglMap->setScale(newScale, [pinch locationInView:pinch.view].x, [pinch locationInView:pinch.view].y);
[self notifyMapChange:mbgl::MapChangeRegionIsChanging];
}
else if (pinch.state == UIGestureRecognizerStateEnded || pinch.state == UIGestureRecognizerStateCancelled)
{