diff --git a/src/components/ViewerPanel.tsx b/src/components/ViewerPanel.tsx index 06981fa..4264c76 100644 --- a/src/components/ViewerPanel.tsx +++ b/src/components/ViewerPanel.tsx @@ -25,6 +25,7 @@ export default function ViewerPanel({className, style}: {className?: string, sty if (!model) throw new Error('No model'); const state = model.state; + const [interactionPrompt, setInteractionPrompt] = useState('auto'); const modelViewerRef = useRef(); const axesViewerRef = useRef(); const toastRef = useRef(null); @@ -62,6 +63,7 @@ export default function ViewerPanel({className, style}: {className?: string, sty orbit.phi = phi; const newOrbit = modelViewerRef.current.cameraOrbit = axesViewerRef.current.cameraOrbit = orbit.toString(); toastRef.current?.show({severity: 'info', detail: `${name} view`, life: 1000,}); + setInteractionPrompt('none'); } } window.addEventListener('click', onClick); @@ -78,7 +80,7 @@ export default function ViewerPanel({className, style}: {className?: string, sty width: '100%', ...(style ?? {}) }}> - +