mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-23 21:38:11 +08:00
Code cleanup after migrating node graph interaction to the backend (#1790)
* Cleanup transforms and click targets * Improve click target caching * Fix click target bugs * Add auto panning * update_modified_click_targets * Code review --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
co-authored by
Keavon Chambers
parent
6fd5b76430
commit
84ac2e274e
@@ -61,7 +61,7 @@ impl SnapConstraint {
|
||||
}
|
||||
}
|
||||
pub fn snap_tolerance(document: &DocumentMessageHandler) -> f64 {
|
||||
document.snapping_state.tolerance / document.navigation.zoom
|
||||
document.snapping_state.tolerance / document.document_ptz.zoom
|
||||
}
|
||||
|
||||
fn compare_points(a: &&SnappedPoint, b: &&SnappedPoint) -> Ordering {
|
||||
|
||||
Reference in New Issue
Block a user