Fix Update flags in mbgl::Transform

Transform::{_moveBy,_setAngle} were returning Update::Nothing, causing
the render to not repaint. Replacing with Update::Repaint fixes the
issue.

Fixes #2036.
This commit is contained in:
Bruno de Oliveira Abinader
2015-08-13 10:14:51 +03:00
parent ac9d5886f0
commit 5ff855bb00

View File

@@ -86,7 +86,7 @@ void Transform::_moveBy(const double dx, const double dy, const Duration& durati
state.x = util::interpolate(startX, x, t);
state.y = util::interpolate(startY, y, t);
view.notifyMapChange(MapChangeRegionIsChanging);
return Update::Nothing;
return Update::Repaint;
},
[=] {
state.panning = false;
@@ -334,7 +334,7 @@ void Transform::_setAngle(double new_angle, const Duration& duration) {
[=](double t) {
state.angle = util::wrap(util::interpolate(startA, angle, t), -M_PI, M_PI);
view.notifyMapChange(MapChangeRegionIsChanging);
return Update::Nothing;
return Update::Repaint;
},
[=] {
state.rotating = false;