diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2015-08-13 10:14:51 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2015-08-13 10:17:08 +0300 |
commit | 5ff855bb0054e7055ae23cf072702b3a216b86e4 (patch) | |
tree | 411351cc6c13cb5ece0b0e6e94ab27299c167f5a | |
parent | ac9d5886f09a58ce879a5372b817b7a524a70844 (diff) | |
download | qtlocation-mapboxgl-5ff855bb0054e7055ae23cf072702b3a216b86e4.tar.gz |
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.
-rw-r--r-- | src/mbgl/map/transform.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/map/transform.cpp b/src/mbgl/map/transform.cpp index 580b5ca15f..ea8775dbcb 100644 --- a/src/mbgl/map/transform.cpp +++ b/src/mbgl/map/transform.cpp @@ -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; |