Skip to main content
Senior III
April 9, 2026
Solved

MoveAnimator on container doesn't work (no movement)

  • April 9, 2026
  • 1 reply
  • 105 views

So I have a container with a single image in it. The container is used in a view and has the Mixins Draggable and MoveAnimator ON

 

nico23_1-1775716245194.png

Now, I want to animate it from the current position (400,38) to 800,38 so, basically a slide animation. I have a function that should trigger the animation

warningModal.startMoveAnimation(WARNING_MODAL_HIDDEN_X,
WARNING_MODAL_Y,
WARNING_MODAL_ANIMATION_DURATION,
touchgfx::EasingEquations::cubicEaseOut,
touchgfx::EasingEquations::linearEaseNone);
 }

where

static const int16_t WARNING_MODAL_HIDDEN_X = 800;
static const int16_t WARNING_MODAL_Y = 38;
static const uint16_t WARNING_MODAL_ANIMATION_DURATION = 12;

But I don't see anything moving; why is that?

Best answer by nico23

My bad, I just figured it out that, for some reason, there was an empty override of the function moveRelative in my container class.

Deleting it, the MoveAnimator worked as intended

1 reply

nico23AuthorBest answer
Senior III
April 9, 2026

My bad, I just figured it out that, for some reason, there was an empty override of the function moveRelative in my container class.

Deleting it, the MoveAnimator worked as intended