Disable pointer events on item placement labels

This commit is contained in:
sudhir
2026-04-30 10:11:39 +05:30
parent 411ae2e905
commit 3d0000f93f
@@ -1283,7 +1283,7 @@ export function usePlacementCoordinator(config: PlacementCoordinatorConfig): Rea
> >
<bufferGeometry /> <bufferGeometry />
</lineSegments> </lineSegments>
<Html center position={widthLabelPosition}> <Html center position={widthLabelPosition} style={{ pointerEvents: 'none' }}>
<div <div
style={{ style={{
background: 'rgba(15, 23, 42, 0.86)', background: 'rgba(15, 23, 42, 0.86)',
@@ -1295,13 +1295,14 @@ export function usePlacementCoordinator(config: PlacementCoordinatorConfig): Rea
fontWeight: 600, fontWeight: 600,
lineHeight: 1, lineHeight: 1,
padding: '4px 8px', padding: '4px 8px',
pointerEvents: 'none',
whiteSpace: 'nowrap', whiteSpace: 'nowrap',
}} }}
> >
{widthLabel} {widthLabel}
</div> </div>
</Html> </Html>
<Html center position={depthLabelPosition}> <Html center position={depthLabelPosition} style={{ pointerEvents: 'none' }}>
<div <div
style={{ style={{
background: 'rgba(15, 23, 42, 0.86)', background: 'rgba(15, 23, 42, 0.86)',
@@ -1313,13 +1314,14 @@ export function usePlacementCoordinator(config: PlacementCoordinatorConfig): Rea
fontWeight: 600, fontWeight: 600,
lineHeight: 1, lineHeight: 1,
padding: '4px 8px', padding: '4px 8px',
pointerEvents: 'none',
whiteSpace: 'nowrap', whiteSpace: 'nowrap',
}} }}
> >
{depthLabel} {depthLabel}
</div> </div>
</Html> </Html>
<Html center position={heightLabelPosition}> <Html center position={heightLabelPosition} style={{ pointerEvents: 'none' }}>
<div <div
style={{ style={{
background: 'rgba(15, 23, 42, 0.86)', background: 'rgba(15, 23, 42, 0.86)',
@@ -1331,6 +1333,7 @@ export function usePlacementCoordinator(config: PlacementCoordinatorConfig): Rea
fontWeight: 600, fontWeight: 600,
lineHeight: 1, lineHeight: 1,
padding: '4px 8px', padding: '4px 8px',
pointerEvents: 'none',
whiteSpace: 'nowrap', whiteSpace: 'nowrap',
}} }}
> >