summaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
authorAleksandar Stojiljkovic <aleksandar.stojiljkovic@mapbox.com>2019-07-11 00:28:57 +0300
committerAleksandar Stojiljkovic <aleksandar.stojiljkovic@mapbox.com>2019-07-14 22:20:56 +0300
commitd968cbba15927d63545ad2069101a054eab4b826 (patch)
treebc5a33dbe4a9f5dc465c1baf4493ea7d302d701c /.gitignore
parenta0e2064f75a229a0bc369ce023e2eaaccb6af074 (diff)
downloadqtlocation-mapboxgl-d968cbba15927d63545ad2069101a054eab4b826.tar.gz
[ios][macos] Fix center coordinate incorrect after pinch gesture
To changelog: Fixed incorrect center coordinate after pinch regression caused by edge insets fix (#14664). While working on #14664, missed to understand the logic used in ``` CLLocationCoordinate2D centerCoordinate = _previousPinchCenterCoordinate; mbgl::EdgeInsets padding { centerPoint.y, centerPoint.x, self.size.height - centerPoint.y, self.size.width - centerPoint.x }; self.mbglMap.jumpTo(mbgl::CameraOptions() .withCenter(MGLLatLngFromLocationCoordinate2D(centerCoordinate)) .withPadding(padding)); ``` Replacing this code by moveBy achieves the required translation. Fixes: #14977, #15082
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions