[core] Standardize transform origin

All Transform methods that take a PrecisionPoint now assume a “flipped” origin at the upper-left corner of the view. Previously, some methods assumed an origin at the lower-left corner.
This commit is contained in:
Minh Nguyễn
2016-01-10 23:38:09 -08:00
committed by Minh Nguyễn
parent d26b956a48
commit ac4b1b7479
6 changed files with 62 additions and 48 deletions

View File

@@ -3471,7 +3471,7 @@ public final class MapView extends FrameLayout {
// around gesture
mNativeMapView.setBearing(bearing,
detector.getFocusX() / mScreenDensity,
(getHeight() - detector.getFocusY()) / mScreenDensity);
detector.getFocusY() / mScreenDensity);
} else {
// around center map
mNativeMapView.setBearing(bearing,