From 7ad9e47bbe2d43f21ea6091609de1982cd197340 Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Tue, 19 Jan 2016 11:36:26 +0200 Subject: [glfw] Fix panning direction Follow-up of the transform refactoring --- platform/default/glfw_view.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform') 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) { -- cgit v1.2.1