Skip to content

Commit

Permalink
Fix: Re-enable CameraControl#followPointer on exit from first-person
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed May 25, 2020
1 parent 5f56cc9 commit c5320b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BIMViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ class BIMViewer extends Controller {

this.setFirstPersonModeActive = (active) => {
bimViewer.viewer.cameraControl.navMode = active ? "firstPerson" : (threeDActive ? "orbit" : "planView");
bimViewer.viewer.cameraControl.followPointer = bimViewer.viewer.cameraControl.navMode === "orbit";
bimViewer.viewer.cameraControl.followPointer = bimViewer.viewer.cameraControl.navMode !== "planView";
firstPersonActive = active;
};
})(this);
Expand Down

0 comments on commit c5320b1

Please sign in to comment.