Skip to content

Commit

Permalink
Bug fix for Smithsonian#135 - always zoom after load in Story Standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
gjcope committed May 4, 2022
1 parent 99103c3 commit 54c713f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/client/components/CVOrbitNavigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ export default class CVOrbitNavigation extends CObject3D

protected onLoadingCompleted(isLoading: boolean)
{
if (this.ins.autoZoom.value && !this._hasChanged) {
if (this.ins.autoZoom.value && (!this._hasChanged || this.system.getComponent("CVStandaloneFileManager", true))) {
this.ins.zoomExtents.set();
this._isAutoZooming = true;
}
Expand Down

0 comments on commit 54c713f

Please sign in to comment.