summaryrefslogtreecommitdiff
path: root/platform/default/glfw_view.cpp
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2016-01-19 11:36:26 +0200
committerThiago Marcos P. Santos <thiago@mapbox.com>2016-01-19 11:36:26 +0200
commit7ad9e47bbe2d43f21ea6091609de1982cd197340 (patch)
treecf94a26ee255911e1913478c7fe181037d29a9a6 /platform/default/glfw_view.cpp
parent8dfba0ef0b92c9ec3f84a4263b96e4e35c8fab30 (diff)
downloadqtlocation-mapboxgl-7ad9e47bbe2d43f21ea6091609de1982cd197340.tar.gz
[glfw] Fix panning direction
Follow-up of the transform refactoring
Diffstat (limited to 'platform/default/glfw_view.cpp')
-rw-r--r--platform/default/glfw_view.cpp2
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) {