Skip to main content
ZENIT
Associate
November 27, 2021
Solved

Change direction of scrollwheel and negative value for animateToItem()

  • November 27, 2021
  • 1 reply
  • 1676 views

Hi dear guys! I have a problem in touchgfx:

​how can I change the scroll direction of scrollwheel using animateToItem()? I used the capability of circulation but I need to send negative value to rotate in a down-up manner... it's okay but if I set a time for animation period and the value change to negative then scrollwheel will rotate over the whole my elements to reach that position! My major problem is changing scroll direction...

Please help me​...

Thanks​

This topic has been closed for replies.
Best answer by ZENIT

Thanks dear friend...its okay now. I used the complement of value instead of negative value : max- value​.

1 reply

MM..1
Chief III
November 27, 2021

Maybe try check code Middlewares\ST\touchgfx\framework\source\touchgfx\containers\scrollers\,

this is placed to your project , but you can create own rename duplicates and change what you need.,.

ZENIT
ZENITAuthorBest answer
Associate
November 27, 2021

Thanks dear friend...its okay now. I used the complement of value instead of negative value : max- value​.