summaryrefslogtreecommitdiff
path: root/platform/macos/src/MGLMapView.mm
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2017-07-05 18:06:51 -0700
committerMinh Nguyễn <mxn@1ec5.org>2017-07-05 18:06:51 -0700
commit74bcca380dd7faa7a629d59e3346506e6a8cca34 (patch)
tree246d8c587621fcc753bfafc3f85afdb94e8460c9 /platform/macos/src/MGLMapView.mm
parent5921f692e085bde5d4e8000c33dac29c796acbf0 (diff)
parent6ca8cd7e24cf919d5eeb0be49d34a02ba9969ac8 (diff)
downloadqtlocation-mapboxgl-74bcca380dd7faa7a629d59e3346506e6a8cca34.tar.gz
Merge remote-tracking branch 'origin/tvn-merge-release'
Diffstat (limited to 'platform/macos/src/MGLMapView.mm')
-rw-r--r--platform/macos/src/MGLMapView.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/macos/src/MGLMapView.mm b/platform/macos/src/MGLMapView.mm
index e0eb0c477c..70198c6432 100644
--- a/platform/macos/src/MGLMapView.mm
+++ b/platform/macos/src/MGLMapView.mm
@@ -1353,7 +1353,7 @@ public:
// Move the cursor back to the start point and show it again, creating
// the illusion that it has stayed in place during the entire gesture.
CGPoint cursorPoint = [self convertPoint:startPoint toView:nil];
- cursorPoint = [self.window convertRectToScreen:{ startPoint, NSZeroSize }].origin;
+ cursorPoint = [self.window convertRectToScreen:{ cursorPoint, NSZeroSize }].origin;
cursorPoint.y = self.window.screen.frame.size.height - cursorPoint.y;
CGDisplayMoveCursorToPoint(kCGDirectMainDisplay, cursorPoint);
CGDisplayShowCursor(kCGDirectMainDisplay);