cancel
Showing results for 
Search instead for 
Did you mean: 

Change direction of scrollwheel and negative value for animateToItem()

ZENIT
Associate

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​

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

2 REPLIES 2
MM..1
Chief III

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.,.

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