瀏覽代碼

Add animateFinished event fired on animations finishing

pull/663/head
Will Calderbank 6 年之前
父節點
當前提交
3e33dcc7ac
共有 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…
取消
儲存