[glfw] Fix panning direction

Follow-up of the transform refactoring
This commit is contained in:
Thiago Marcos P. Santos
2016-01-19 11:36:26 +02:00
parent 8dfba0ef0b
commit 7ad9e47bbe

View File

@@ -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) {