Path Segment & Mouse

How do I determine, which segment of the path is currently hovered by the mouse

Thanks.



Answer this question

Path Segment & Mouse

  • Col3456345

    You can get the set of points for a path and just itterate on each segment. From there it is just math. There is no API to my knowledge that will do hit testing within a shape.

  • sezrah

    Hi Michael, that's exactly what I was trying to avoid. I like your saying 'just math' though .
  • Path Segment & Mouse