Merge pull request #1453 from mapbox/1ec5-whee-2
Prevent full-circle spin during animated rotation
This commit is contained in:
@@ -384,6 +384,7 @@ void Transform::_setAngle(double new_angle, const Duration duration) {
|
||||
MapChangeRegionWillChange);
|
||||
|
||||
final.angle = _normalizeAngle(new_angle, current.angle);
|
||||
current.angle = _normalizeAngle(current.angle, final.angle);
|
||||
|
||||
if (duration == Duration::zero()) {
|
||||
current.angle = final.angle;
|
||||
|
||||
Reference in New Issue
Block a user