diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-01-19 11:36:26 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-01-19 11:36:26 +0200 |
commit | 7ad9e47bbe2d43f21ea6091609de1982cd197340 (patch) | |
tree | cf94a26ee255911e1913478c7fe181037d29a9a6 /platform | |
parent | 8dfba0ef0b92c9ec3f84a4263b96e4e35c8fab30 (diff) | |
download | qtlocation-mapboxgl-7ad9e47bbe2d43f21ea6091609de1982cd197340.tar.gz |
[glfw] Fix panning direction
Follow-up of the transform refactoring
Diffstat (limited to 'platform')
-rw-r--r-- | platform/default/glfw_view.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/default/glfw_view.cpp b/platform/default/glfw_view.cpp index ebdcae0d4a..bdd48d9d96 100644 --- a/platform/default/glfw_view.cpp +++ b/platform/default/glfw_view.cpp @@ -369,7 +369,7 @@ void GLFWView::onMouseMove(GLFWwindow *window, double x, double y) { double dy = y - view->lastY; if (dx || dy) { view->map->setLatLng( - view->map->latLngForPixel(mbgl::PrecisionPoint(x - dx, y + dy)), + view->map->latLngForPixel(mbgl::PrecisionPoint(x - dx, y - dy)), mbgl::PrecisionPoint(x, y)); } } else if (view->rotating) { |