Skip to content

Commit

Permalink
feat: allow pitch in panorama scene
Browse files Browse the repository at this point in the history
  • Loading branch information
henriettemoe committed Jan 11, 2024
1 parent 9decc11 commit 793ec77
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/components/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,14 @@ export default class Main extends React.Component {
// Listen for zoomed in and out
const zoomControls = this.state.threeSixty?.zoomControls;

zoomControls?.on('zoom', () => {
zoomControls?.on('zoomin', () => {
this.setState({
maxZoomedIn: zoomControls?.isDollyInDisabled(),
maxZoomedOut: zoomControls?.isDollyOutDisabled()
});
});

zoomControls?.on('zoomout', () => {
this.setState({
maxZoomedIn: zoomControls?.isDollyInDisabled(),
maxZoomedOut: zoomControls?.isDollyOutDisabled()
Expand Down

0 comments on commit 793ec77

Please sign in to comment.