‎2020-11-09 06:10 PM
The speed of screen transition is too fast, I want to slow it. How should I do?
Solved! Go to Solution.
‎2020-11-18 01:04 AM
There currently is no good way to change the speed of e.g. a slide transition. If you go to touchgfx\framework\include\touchgfx\transitions\SlideTransition.hpp, you can change the steps (and thus the speed speed) in the constructor. This would affect all transitions - But if you modify the generated files the change would get overwritten.
An animation has an easing-equation associated with it. The fewer steps, the faster the animation.
template <Direction templateDirection>
class SlideTransition : public Transition
{
public:
SlideTransition(const uint8_t transitionSteps = 20)
: Transition(),
snapshot(),
...
/Martin
‎2020-11-18 01:04 AM
There currently is no good way to change the speed of e.g. a slide transition. If you go to touchgfx\framework\include\touchgfx\transitions\SlideTransition.hpp, you can change the steps (and thus the speed speed) in the constructor. This would affect all transitions - But if you modify the generated files the change would get overwritten.
An animation has an easing-equation associated with it. The fewer steps, the faster the animation.
template <Direction templateDirection>
class SlideTransition : public Transition
{
public:
SlideTransition(const uint8_t transitionSteps = 20)
: Transition(),
snapshot(),
...
/Martin
‎2020-11-18 05:05 PM
:* Thanks, it works.
‎2023-01-13 10:52 PM
Hi. I have this problem too.
I changed the transitionSteps and it worked in the simulator in touchgfx
but when I programmed the code on board the screen transition is very fast and not changed according to (transitionSteps).
how can i solve it ?
‎2023-01-15 08:45 PM
Hi,
Just to verify, what transition are you using ? If you are using the slide transition, did you enable the animation buffer ? This step is mandatory for this transition.
/Romain
‎2023-10-05 04:39 PM
Can I ask for a feature request to support overriding the default number of transition steps from within the Designer.