浏览代码

Add missing callback invocations to setPitch, setYaw and setHfov.

master
Jonas Petersen 1 个月前
committed by Matthew Petroff
父节点
当前提交
9274ed63d7
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. +6
    -0
      src/js/pannellum.js

+ 6
- 0
src/js/pannellum.js 查看文件

@@ -2721,6 +2721,8 @@ this.setPitch = function(pitch, animated, callback, callbackArgs) {
setTimeout(function(){callback(callbackArgs);}, animated);
} else {
config.pitch = pitch;
if (typeof callback == 'function')
callback(callbackArgs);
}
animateInit();
return this;
@@ -2795,6 +2797,8 @@ this.setYaw = function(yaw, animated, callback, callbackArgs) {
setTimeout(function(){callback(callbackArgs);}, animated);
} else {
config.yaw = yaw;
if (typeof callback == 'function')
callback(callbackArgs);
}
animateInit();
return this;
@@ -2862,6 +2866,8 @@ this.setHfov = function(hfov, animated, callback, callbackArgs) {
setTimeout(function(){callback(callbackArgs);}, animated);
} else {
setHfov(hfov);
if (typeof callback == 'function')
callback(callbackArgs);
}
animateInit();
return this;


正在加载...
取消
保存