cancel
Showing results for 
Search instead for 
Did you mean: 

MoveAnimator on container doesn't work (no movement)

nico23
Senior III

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?

1 ACCEPTED SOLUTION

Accepted Solutions
nico23
Senior III

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

View solution in original post

1 REPLY 1
nico23
Senior III

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