show vertex points in dialog only in motion search

This commit is contained in:
Josh Hawkins 2026-03-20 10:17:44 -05:00
parent a09dd8e828
commit fade1086b3

View File

@ -372,8 +372,9 @@ export default function MotionSearchROICanvas({
/> />
)} )}
{/* Vertex points */} {/* Vertex points (only shown in interactive/dialog mode) */}
{scaledPoints.map((point, index) => ( {isInteractive &&
scaledPoints.map((point, index) => (
<Circle <Circle
key={index} key={index}
name={`point-${index}`} name={`point-${index}`}
@ -383,7 +384,7 @@ export default function MotionSearchROICanvas({
fill={polygonColorString} fill={polygonColorString}
stroke="white" stroke="white"
strokeWidth={2} strokeWidth={2}
draggable={!isDrawing && isInteractive} draggable={!isDrawing}
onDragMove={(e) => handlePointDragMove(e, index)} onDragMove={(e) => handlePointDragMove(e, index)}
onMouseOver={(e) => handleMouseOverPoint(e, index)} onMouseOver={(e) => handleMouseOverPoint(e, index)}
onMouseOut={(e) => handleMouseOutPoint(e, index)} onMouseOut={(e) => handleMouseOutPoint(e, index)}