jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.42k stars 714 forks source link

onClick on stroke of the path #796

Closed hyminhlee closed 6 months ago

hyminhlee commented 6 months ago

Hi @jerosoler Can I catch the event by clicking on the stroke (red) instead of all path content (black color)? If Connectors are overlapping, it is hard to select one of them path

jerosoler commented 6 months ago

Try css:

.drawflow .connection .main-path {
   pointer-events: stroke;
}
hyminhlee commented 6 months ago

Wow, I got it. Thank you