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
Prevent friction value of undefined breaking inertia
pull/689/head
Will Calderbank
6 years ago
parent
a057211989
commit
23d32ffd20
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
@@ -1249,6 +1249,7 @@ function keyRepeat() {
// "Inertia"
if (diff > 0 && !config.autoRotate) {
// "Friction"
config.friction = config.friction == undefined ? defaultConfig.friction : config.friction;
var slowDownFactor = 1 - config.friction;
// Yaw
Write
Preview
Loading…
Cancel
Save