2026-04-08 11:33 PM
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
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?
Solved! Go to Solution.
2026-04-08 11:42 PM
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
2026-04-08 11:42 PM
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
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.