fix(selection): keep node positions when extent is reached closes
This commit is contained in:
@@ -254,9 +254,10 @@ export function calcNextPosition<NodeType extends NodeBase>(
|
||||
];
|
||||
}
|
||||
|
||||
const positionAbsolute = currentExtent
|
||||
? clampPosition(nextPosition, currentExtent as CoordinateExtent)
|
||||
: nextPosition;
|
||||
const positionAbsolute =
|
||||
currentExtent && currentExtent !== 'parent'
|
||||
? clampPosition(nextPosition, currentExtent as CoordinateExtent)
|
||||
: nextPosition;
|
||||
|
||||
return {
|
||||
position: {
|
||||
|
||||
Reference in New Issue
Block a user