tuanchauict / MonoSketch

An ASCII graph drawing app
https://monosketch.io
Apache License 2.0
367 stars 9 forks source link

Prioritize the interaction point over unselected shape when identifying hover shape #575

Closed tuanchauict closed 1 year ago

tuanchauict commented 1 year ago

The feature moving without selection creates a bad UX for the currently selected shapes: top shapes have higher priority than currently selected shapes -> interaction points are ignored.

In this PR, I change the priority of the mouse point to the interaction points instead of underlying shapes: only focus on the shape when the mouse is not on any interaction point.