Skip to content

Commit

Permalink
Add missing callback invocations to setPitch, setYaw and setHfov.
Browse files Browse the repository at this point in the history
  • Loading branch information
jox authored and mpetroff committed Sep 28, 2024
1 parent fde3fbd commit 9274ed6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/js/pannellum.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 9274ed6

Please sign in to comment.