From 3e33dcc7ac31ce17a25861583f2d7243c30f93ab Mon Sep 17 00:00:00 2001 From: Will Calderbank Date: Thu, 27 Sep 2018 15:10:44 +0100 Subject: [PATCH] Add animateFinished event fired on animations finishing --- src/js/pannellum.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/pannellum.js b/src/js/pannellum.js index f233249..edd4d29 100644 --- a/src/js/pannellum.js +++ b/src/js/pannellum.js @@ -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 -