blitzarx1 / egui_graphs

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

middle clicking on a node will drag it instead of the viewport #167

Closed XertroV closed 8 months ago

XertroV commented 9 months ago

if you have a viewport you can drag with middle click (not sure if this is dependent on a specific option i have enabled), then middle clicking on the node will drag the node, which probably isn't what ppl expect. Right click does this too I think.

Notably, middle click and right click do not trigger the selected node event.

blitzarx1 commented 8 months ago

Good point. I think we can make middle click only for moving viewport. And leave left and right click for interactions with graph elements.

blitzarx1 commented 8 months ago

Changed behavior: now middle mouse drags are pans and node interaction is only with LMB