blitzarx1 / egui_graphs

Interactive graph visualization widget for rust powered by egui and petgraph
https://docs.rs/crate/egui_graphs
MIT License
388 stars 29 forks source link

fix bad unwrap in graph_view for hover_pos #175

Closed XertroV closed 7 months ago

XertroV commented 7 months ago

This caused a panic for me when switched to the graph view in my app. It tried to load a lot of nodes at once (called amongst UI code). Might have been related to clicking on the app while it was loading, then moving my cursor off, and when the event was processed there was no hover_pos. (It returns None if the cursor is outside the window)

blitzarx1 commented 7 months ago

Thanks for this contrib and sorry for the long time it took to response response.