diff --git a/src/lab/QuestCubeLab.tsx b/src/lab/QuestCubeLab.tsx index a333908..e29b3a2 100644 --- a/src/lab/QuestCubeLab.tsx +++ b/src/lab/QuestCubeLab.tsx @@ -239,7 +239,7 @@ const CubeControlado = ({ castShadow receiveShadow position={[0, 0.5, 0]} - onClick={(e) => { + onPointerDown={(e) => { e.stopPropagation(); if (!e.intersections[0].face) return; const localNormal = e.intersections[0].face.normal; @@ -278,7 +278,7 @@ const Table = ({ onSurfaceClick: (p: THREE.Vector3, n: THREE.Vector3) => void; onEdgeClick: (p: THREE.Vector3, n: THREE.Vector3) => void; }) => { - const handleClick = (e: ThreeEvent) => { + const handleClick = (e: ThreeEvent) => { e.stopPropagation(); if (!e.intersections[0].face) return; const n = e.intersections[0].face.normal; @@ -293,12 +293,12 @@ const Table = ({ return ( {/* Tampo Superior */} - + {/* Prateleira Inferior */} - +