Solved 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.
-
oh .. animating
scale
makes it very smooth ..
-
@J.Hilk in my app the change in width will be 2 ..
gonna try anyway ;-) -
marking this solved
smooth as butter :-) -
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. -
@GrecKo will try. Thanks!
-
Works absolutely perfect !