This website works better with JavaScript.
Home
Help
Sign In
heuzef
/
pannellum
mirror of
https://github.com/mpetroff/pannellum.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
22
Wiki
Activity
Browse Source
Fix autorotate.
pull/8/head
Matthew Petroff
10 years ago
parent
4ac7c73308
commit
e89fab6069
1 changed files
with
3 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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;
Write
Preview
Loading…
Cancel
Save