fix: pointer-events="stroke" sur les arcs — corrige tooltip persistant dans la zone de fill
ci/woodpecker/push/woodpecker Pipeline was successful

Le <g> parent héritait pointer-events:all aux <path> enfants, capturant
la zone de fill géométrique (intérieur de l'arc). onMouseLeave ne se
déclenchait pas en restant dans cette zone.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
syoul
2026-04-22 02:06:44 +02:00
parent 782b063b25
commit dfe832728e
+2 -2
View File
@@ -330,8 +330,8 @@ export function FlowMap({ arcs, focusCity, onCityClick }: FlowMapProps) {
style={{ cursor: 'default' }} style={{ cursor: 'default' }}
> >
{/* Zone de hit invisible plus large */} {/* Zone de hit invisible plus large */}
<path d={a.path} fill="none" stroke="transparent" strokeWidth={Math.max(2, a.strokeW)} /> <path d={a.path} fill="none" stroke="transparent" strokeWidth={Math.max(2, a.strokeW)} pointerEvents="stroke" />
<path d={a.path} fill="none" stroke={a.stroke} strokeWidth={a.strokeW} strokeLinecap="round" /> <path d={a.path} fill="none" stroke={a.stroke} strokeWidth={a.strokeW} strokeLinecap="round" pointerEvents="stroke" />
<polygon points={a.arrowPts} fill={a.arrowFill} /> <polygon points={a.arrowPts} fill={a.arrowFill} />
</g> </g>
))} ))}