Closed vadimshvetsov closed 3 years ago
yarn run pretty
If you will check smart routing demo you will find out that PathFindingLink becomes selected even when you moving mouse quite far from the path.
PathFindingLink
The issue lays in DefaultLinkFactory which sets pointer-events: all to the actual path.
DefaultLinkFactory
pointer-events: all
I see two possible options for fix it:
PathFindingLinkFactory
generateLinkSegment
pointer-events
all
auto
I've chosen the second one because see no reason to have pointer-events: all there.
Checklist
yarn run pretty
What?
If you will check smart routing demo you will find out that
PathFindingLink
becomes selected even when you moving mouse quite far from the path.Why?
The issue lays in
DefaultLinkFactory
which setspointer-events: all
to the actual path.How?
I see two possible options for fix it:
PathFindingLinkFactory
withgenerateLinkSegment
method for overridingDefaultLinkFactory
onepointer-events
style fromall
toauto
inDefaultLinkFactory
I've chosen the second one because see no reason to have
pointer-events: all
there.Feel good image: