Commit 76379a91 authored by Marco Bubke's avatar Marco Bubke
Browse files

Change direction of the margin change for the cursor key use case

parent b70382dc
......@@ -311,7 +311,7 @@ void MoveManipulator::moveBy(double deltaX, double deltaY)
QmlAnchors anchors(item->qmlItemNode().anchors());
if (anchors.instanceHasAnchor(AnchorLine::Top)) {
anchors.setMargin(AnchorLine::Top, anchors.instanceMargin(AnchorLine::Top) - deltaY);
anchors.setMargin(AnchorLine::Top, anchors.instanceMargin(AnchorLine::Top) + deltaY);
}
if (anchors.instanceHasAnchor(AnchorLine::Left)) {
......@@ -319,7 +319,7 @@ void MoveManipulator::moveBy(double deltaX, double deltaY)
}
if (anchors.instanceHasAnchor(AnchorLine::Bottom)) {
anchors.setMargin(AnchorLine::Bottom, anchors.instanceMargin(AnchorLine::Bottom) + deltaY);
anchors.setMargin(AnchorLine::Bottom, anchors.instanceMargin(AnchorLine::Bottom) - deltaY);
}
if (anchors.instanceHasAnchor(AnchorLine::Right)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment