Fix #106043: Moving frame node jittering while cursor is still #106096
|
@ -48,11 +48,15 @@ static void create_transform_data_for_node(TransData &td,
|
||||||
|
|
||||||
/* account for parents (nested nodes) */
|
/* account for parents (nested nodes) */
|
||||||
if (node.parent) {
|
if (node.parent) {
|
||||||
nodeToView(node.parent, node.locx + node.offsetx, node.locy + node.offsety, &locx, &locy);
|
nodeToView(node.parent,
|
||||||
|
node.locx + roundf(node.offsetx),
|
||||||
|
node.locy + roundf(node.offsety),
|
||||||
|
&locx,
|
||||||
|
&locy);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
locx = node.locx + node.offsetx;
|
locx = node.locx + roundf(node.offsetx);
|
||||||
locy = node.locy + node.offsety;
|
locy = node.locy + roundf(node.offsety);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* use top-left corner as the transform origin for nodes */
|
/* use top-left corner as the transform origin for nodes */
|
||||||
|
@ -245,14 +249,14 @@ static void flushTransNodes(TransInfo *t)
|
||||||
/* account for parents (nested nodes) */
|
/* account for parents (nested nodes) */
|
||||||
if (node->parent) {
|
if (node->parent) {
|
||||||
nodeFromView(node->parent,
|
nodeFromView(node->parent,
|
||||||
loc[0] - node->offsetx,
|
loc[0] - roundf(node->offsetx),
|
||||||
loc[1] - node->offsety,
|
loc[1] - roundf(node->offsety),
|
||||||
&node->locx,
|
&node->locx,
|
||||||
&node->locy);
|
&node->locy);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
node->locx = loc[0] - node->offsetx;
|
node->locx = loc[0] - roundf(node->offsetx);
|
||||||
node->locy = loc[1] - node->offsety;
|
node->locy = loc[1] - roundf(node->offsety);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue