Skip to content

Commit

Permalink
feat(Website): ✨ Add noPan to controller
Browse files Browse the repository at this point in the history
now user can't pan the controller by holding right click
  • Loading branch information
mini-mirana committed Mar 1, 2022
1 parent b1b35ae commit cfc6849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export default function Home() {
<Bloom luminanceThreshold={0.3} luminanceSmoothing={0.9} height={1024} />
</EffectComposer>

<TrackballControls noRotate zoomSpeed={0.2} />
<TrackballControls noPan noRotate zoomSpeed={0.2} />
</Canvas>
{/* This is the tunnels "Out", contents will appear here (we're in react-dom, not r3f) */}
<dom.Out />
Expand Down

0 comments on commit cfc6849

Please sign in to comment.