diff options
author | Dan Wexler <wex@zorroa.com> | 2016-03-20 09:32:17 -0700 |
---|---|---|
committer | Dan Wexler <wex@zorroa.com> | 2016-03-20 09:32:17 -0700 |
commit | 429ea535e562f14ccf07a75812d3961e314dc787 (patch) | |
tree | 03c4c1da24cf51dd1fb21ea43de461f20c44f083 /platform/osx | |
parent | 3152243f4eaaf95d1bfb869e40290c890f87c877 (diff) | |
download | qtlocation-mapboxgl-429ea535e562f14ccf07a75812d3961e314dc787.tar.gz |
Reset the translation to zero without adjusting for view to fix non-zero frame origin bug.
Diffstat (limited to 'platform/osx')
-rw-r--r-- | platform/osx/src/MGLMapView.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/osx/src/MGLMapView.mm b/platform/osx/src/MGLMapView.mm index 07c080663f..6f3cd8e329 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]; } } } |