Browse Source

Fix autorotate.

pull/8/head
Matthew Petroff 10 years ago
parent
commit
e89fab6069
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/js/pannellum.js

+ 3
- 1
src/js/pannellum.js View File

@@ -356,7 +356,9 @@ function keyRepeat() {
// If auto-rotate // If auto-rotate
if(config.autoRotate) { if(config.autoRotate) {
// Pan // Pan
config.yaw -= config.autoRotate / (60 * diff);
if(diff > 0.000001) {
config.yaw -= config.autoRotate / 60 * diff;
}
} }
prevTime = newTime; prevTime = newTime;


Loading…
Cancel
Save