mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-27 07:18:12 +08:00
Make Path tool deselect all points on single-click, and select all on double-click, of shape's fill (#2148)
* Implement deselect on single-click and select all anchors on double-click * fixed the single_click_behaviour * fix flipSmoothSharp when doubleclick and drag * Cleanup and Clippy fixes --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
co-authored by
Keavon Chambers
parent
a1dc9556af
commit
77936c44b0
@@ -1655,8 +1655,7 @@ impl DocumentMessageHandler {
|
||||
/// Finds the artboard that bounds the point in viewport space and be the container of any newly added layers.
|
||||
pub fn new_layer_bounding_artboard(&self, ipp: &InputPreprocessorMessageHandler) -> LayerNodeIdentifier {
|
||||
self.click_xray(ipp)
|
||||
.filter(|layer| self.network_interface.is_artboard(&layer.to_node(), &[]))
|
||||
.next()
|
||||
.find(|layer| self.network_interface.is_artboard(&layer.to_node(), &[]))
|
||||
.unwrap_or(LayerNodeIdentifier::ROOT_PARENT)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user