From 429ea535e562f14ccf07a75812d3961e314dc787 Mon Sep 17 00:00:00 2001 From: Dan Wexler Date: Sun, 20 Mar 2016 09:32:17 -0700 Subject: [PATCH] Reset the translation to zero without adjusting for view to fix non-zero frame origin bug. --- platform/osx/src/MGLMapView.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/osx/src/MGLMapView.mm b/platform/osx/src/MGLMapView.mm index 07c080663..6f3cd8e32 100644 --- a/platform/osx/src/MGLMapView.mm +++ b/platform/osx/src/MGLMapView.mm @@ -1232,7 +1232,7 @@ public: if (gestureRecognizer.state == NSGestureRecognizerStateChanged) { delta.y *= -1; [self offsetCenterCoordinateBy:delta animated:NO]; - [gestureRecognizer setTranslation:NSZeroPoint inView:self]; + [gestureRecognizer setTranslation:NSZeroPoint inView:nil]; } } }