Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Fix Update flags in mbgl::Transform
Browse files Browse the repository at this point in the history
Transform::{_moveBy,_setAngle} were returning Update::Nothing, causing
the render to not repaint. Replacing with Update::Repaint fixes the
issue.

Fixes #2036.
  • Loading branch information
brunoabinader committed Aug 13, 2015
1 parent ac9d588 commit 5ff855b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mbgl/map/transform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 5ff855b

Please sign in to comment.