In the Pen tool, make Space drag the whole manipulator group while dragging a handle (#2416)

* implemented space drag need to handle unwrap + clean snap cache

* completed the space drag need to refactor

* refactor

* small comment changes

* formating_fix

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
0SlowPoke0
2025-03-12 03:27:35 -07:00
committed by GitHub
co-authored by Keavon Chambers
parent c0d3eb8072
commit 2bcfe5ea0c
3 changed files with 281 additions and 69 deletions
@@ -187,7 +187,7 @@ fn get_grid_intersection(snap_to: DVec2, lines: &[SnappedLine]) -> Option<Snappe
best
}
#[derive(Default)]
#[derive(Default, Clone, Debug)]
pub struct SnapCache {
pub manipulators: HashMap<LayerNodeIdentifier, HashSet<PointId, NoHashBuilder>, NoHashBuilder>,
pub unselected: Vec<SnapCandidatePoint>,