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
cap diff so panorama doesn't jump after inertia + wait time
pull/42/head
Daniel Naber
9 years ago
parent
a76f82ce93
commit
07622a2b3b
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
src/js/pannellum.js
+ 1
- 0
src/js/pannellum.js
View File
@@ -608,6 +608,7 @@ function keyRepeat() {
newTime = Date.now();
}
var diff = (newTime - prevTime) * config.hfov / 1700;
diff = Math.min(diff, 1.0);
// If minus key is down
if (keysDown[0]) {
Write
Preview
Loading…
Cancel
Save