summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2014-11-21 12:50:34 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2014-11-21 12:50:34 -0800
commita9b20fc09a51d62d471d8234387d07a838b4ca76 (patch)
treecf92c15febda490326cac648892d0d00b91c0ee4 /src
parent545292b6f9d461d439972a204ff747f4902dd4d1 (diff)
downloadqtlocation-mapboxgl-a9b20fc09a51d62d471d8234387d07a838b4ca76.tar.gz
Remove other rotation constraint (fixes #463)
Diffstat (limited to 'src')
-rw-r--r--src/map/transform.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/map/transform.cpp b/src/map/transform.cpp
index 03e06f984b..d05d1f7446 100644
--- a/src/map/transform.cpp
+++ b/src/map/transform.cpp
@@ -66,12 +66,6 @@ void Transform::_moveBy(const double dx, const double dy, const timestamp durati
constrain(final.scale, final.y);
- // Un-rotate when rotated and panning far enough to show off-world in corners.
- double w = final.scale * util::tileSize / 2;
- double m = std::sqrt(std::pow((current.width / 2), 2) + pow((current.height / 2), 2));
- double x = std::abs(sqrt(std::pow(final.x, 2) + std::pow(final.y, 2)));
- if (current.angle && w - x < m) _setAngle(0);
-
if (duration == 0) {
current.x = final.x;
current.y = final.y;