statelyai / xstate-viz

Visualizer for XState machines
https://stately.ai/viz
MIT License
434 stars 102 forks source link

Panel resizing can get into strange states #359

Open johtso opened 2 years ago

johtso commented 2 years ago

Sometimes when resizing the panel it will get into a state where it thinks that the mouse is pressed when it isn't, and vice versa.

Also very minor, but while dragging to resize the panel sometimes all text on the page gets rapidly selected and deselected. Not entirely sure when that happens.

johtso commented 2 years ago

I guess an issue with how drag session tracker detects the end of the drag session https://github.com/statelyai/xstate-viz/blob/dev/src/dragSessionTracker.ts