Browse Source

Merge pull request #1 from willcalderbank/feature/animateFinished

Add animateFinished event fired on animations finishing
pull/675/head
Will Calderbank 6 years ago
committed by GitHub
parent
commit
b22a5c0eae
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/js/pannellum.js

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

@@ -1372,6 +1372,7 @@ function animate() {
} else if (renderer && (renderer.isLoading() || (config.dynamic === true && update))) {
requestAnimationFrame(animate);
} else {
fireEvent('animateFinished', {pitch: _this.getPitch(), yaw: _this.getYaw(), hfov: _this.getHfov()});
animating = false;
prevTime = undefined;
var autoRotateStartTime = config.autoRotateInactivityDelay -


Loading…
Cancel
Save