From 129bc0310d71a1d483c4bdbcf01c266fde98d767 Mon Sep 17 00:00:00 2001 From: Matthew Petroff Date: Mon, 12 Dec 2016 11:03:11 -0500 Subject: [PATCH] Remove redundant constraint on yaw in API (fixes #315). --- src/js/pannellum.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/js/pannellum.js b/src/js/pannellum.js index 87522df..54b249f 100644 --- a/src/js/pannellum.js +++ b/src/js/pannellum.js @@ -2211,12 +2211,6 @@ this.getYaw = function() { * @returns {Viewer} `this` */ this.setYaw = function(yaw, animated) { - while (yaw > 180) { - yaw -= 360; - } - while (yaw < -180) { - yaw += 360; - } animated = animated == undefined ? 1000: Number(animated); if (animated) { animatedMove.yaw = {