mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-21 07:28:12 +08:00
Improve behavior of occluded layer selection and dragging (#732)
Improve behavior of occluded layer dragging Layers or groups of layers can only be dragged if they are not occluded at the point of dragging. Otherwise the layer(s) are deselected and the occluding layer is selected instead. Closes #705 Co-authored-by: David Chiasson <david@sagemotion.com>
This commit is contained in:
co-authored by
David Chiasson
parent
08721aa7a2
commit
b6793517e2
@@ -445,7 +445,7 @@ impl Fsm for SelectToolFsmState {
|
||||
tool_data.layers_dragging = selected;
|
||||
|
||||
RotatingBounds
|
||||
} else if selected.iter().any(|path| intersection.contains(path)) {
|
||||
} else if intersection.last().map(|last| selected.contains(last)).unwrap_or(false) {
|
||||
responses.push_back(DocumentMessage::StartTransaction.into());
|
||||
tool_data.layers_dragging = selected;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user