Browse Source

Remove redundant constraint on yaw in API (fixes #315).

pull/318/head
Matthew Petroff 8 years ago
parent
commit
129bc0310d
1 changed files with 0 additions and 6 deletions
  1. +0
    -6
      src/js/pannellum.js

+ 0
- 6
src/js/pannellum.js View File

@@ -2211,12 +2211,6 @@ this.getYaw = function() {
* @returns {Viewer} `this` * @returns {Viewer} `this`
*/ */
this.setYaw = function(yaw, animated) { this.setYaw = function(yaw, animated) {
while (yaw > 180) {
yaw -= 360;
}
while (yaw < -180) {
yaw += 360;
}
animated = animated == undefined ? 1000: Number(animated); animated = animated == undefined ? 1000: Number(animated);
if (animated) { if (animated) {
animatedMove.yaw = { animatedMove.yaw = {


Loading…
Cancel
Save