Skip to main content
Associate
October 31, 2023
Solved

Scroll list, control how far the last element is scrolled.

  • October 31, 2023
  • 1 reply
  • 1642 views

Hi

I've added a scroll list with 10 elements to my view. It works without issues but I would like to change how far it scrolls.

When I scroll up, the list stops when the last element has reached the top of the area. I would like the scroll to stop as soon as the last element is fully visible at the bottom of the area. Is this possible?

If I use a scrollable container I can get this behavior, but I would like to use a list.

/Henrik

This topic has been closed for replies.
Best answer by Mohammad MORADI ESFAHANIASL

Hello @Henrik76 ,

Unfortunately, it is not possible to have similar behavior as Scroll Container because Scroll List uses animations and requires different handling. However, you can use Padding Before to force covering the space at the end, but then you will have space at the beginning. 
I hope this helps you, don't hesitate to ask more questions.

1 reply

ST Employee
October 31, 2023

Hello @Henrik76 ,

Unfortunately, it is not possible to have similar behavior as Scroll Container because Scroll List uses animations and requires different handling. However, you can use Padding Before to force covering the space at the end, but then you will have space at the beginning. 
I hope this helps you, don't hesitate to ask more questions.

Mohammad MORADIST Software Developer | TouchGFX
Henrik76Author
Associate
October 31, 2023

Thank you for the quick reply.

I will have to make do with the scroll container.

/henrik

ST Employee
October 31, 2023

You're very welcome, 

Good luck

Mohammad MORADIST Software Developer | TouchGFX