[osx] Flipped drag-rotate center point

This commit is contained in:
Minh Nguyễn
2015-12-19 23:30:21 -08:00
committed by Minh Nguyễn
parent a5230f3e11
commit cafe591d2a

View File

@@ -1168,7 +1168,7 @@ public:
_directionAtBeginningOfGesture = self.direction;
_pitchAtBeginningOfGesture = _mbglMap->getPitch();
} else if (gestureRecognizer.state == NSGestureRecognizerStateChanged) {
mbgl::PrecisionPoint center(startPoint.x, startPoint.y);
mbgl::PrecisionPoint center(startPoint.x, self.bounds.size.height - startPoint.y);
if (self.rotateEnabled) {
CLLocationDirection newDirection = _directionAtBeginningOfGesture - delta.x / 10;
[self willChangeValueForKey:@"direction"];