瀏覽代碼

Add animateFinished event fired on animations finishing

pull/668/merge
Will Calderbank 6 年之前
committed by Matthew Petroff
父節點
當前提交
a40b906ebd
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. +1
    -0
      src/js/pannellum.js

+ 1
- 0
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 -


Loading…
取消
儲存