瀏覽代碼

fixed bug when firing animatefinished

pull/880/head
NiHoel 6 年之前
父節點
當前提交
f50398ed67
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      src/js/pannellum.js

+ 2
- 1
src/js/pannellum.js 查看文件

@@ -1409,7 +1409,8 @@ 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()});
if (_this.getPitch && _this.getYaw && _this.getHfov)
fireEvent('animatefinished', {pitch: _this.getPitch(), yaw: _this.getYaw(), hfov: _this.getHfov()});
animating = false;
prevTime = undefined;
var autoRotateStartTime = config.autoRotateInactivityDelay -


Loading…
取消
儲存