[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:
committed by
Minh Nguyễn
parent
d26b956a48
commit
ac4b1b7479
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user