瀏覽代碼

Merge pull request #1 from willcalderbank/feature/animateFinished

Add animateFinished event fired on animations finishing
pull/675/head
Will Calderbank 6 年之前
committed by GitHub
父節點
當前提交
b22a5c0eae
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 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…
取消
儲存