Skip to content

Commit

Permalink
fix bug - camera move should invoke callbacks when delay is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
aeroheim committed Oct 15, 2021
1 parent 959d44f commit 8307d39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/background-camera.ts
Expand Up @@ -415,7 +415,7 @@ class BackgroundCamera {
} = transition;

onInit();
if (duration > 0) {
if (duration > 0 || delay > 0) {
this._positionTransition = new Tween({ x: currentX, y: currentY, z: currentZ })
.to({ x, y, z }, duration * 1000)
.easing(easing)
Expand Down

0 comments on commit 8307d39

Please sign in to comment.