Wobbly animation. Can this be fixed?
-
As you can see, the size circle wobbles when animating the width and height.
Anyway to fix this?@rghvdberg change the width and height in steps of 2 instead of 1.
-
@rghvdberg change the width and height in steps of 2 instead of 1.
-
I suppose you used
anchors.centerIn: parent
.You could fix it by setting
anchors.alignWhenCentered
tofalse
:anchors.alignWhenCentered
(default true) forces centered anchors to align to a whole pixel; if the item being centered has an odd width or height, the item will be positioned on a whole pixel rather than being placed on a half-pixel. This ensures the item is painted crisply. There are cases where this is not desirable, for example when rotating the item jitters may be apparent as the center is rounded. -
I suppose you used
anchors.centerIn: parent
.You could fix it by setting
anchors.alignWhenCentered
tofalse
:anchors.alignWhenCentered
(default true) forces centered anchors to align to a whole pixel; if the item being centered has an odd width or height, the item will be positioned on a whole pixel rather than being placed on a half-pixel. This ensures the item is painted crisply. There are cases where this is not desirable, for example when rotating the item jitters may be apparent as the center is rounded.