Skip to main content
IMirz.1
Visitor II
September 1, 2021
Question

ScrollList within ScrollableContainer

  • September 1, 2021
  • 1 reply
  • 612 views

I have a ScrollList at the end of a ScrollableContainer. If I scroll down the ScrollableContainer to the ScrollList, the items in the ScrollList are not scrollable.

However, if I place the ScrollList out of the scrollablecontainer, the scrolllist items are scrollable correctly. Can we not place a ScrollList withing a ScrollableContainer? or am I missing some required step?

Thanks very much for responding.

This topic has been closed for replies.

1 reply

ktrofimo
Senior III
September 1, 2021

This is a problem of priority - what container should react on scroll gesture. By default all your gestures are taken by the ScrollableContainer and it doesn't pass them down to SrollList.

If you have two widgets: one scrolled vertically, another - horizontally, then you can write code (Google for examples, I have seen some)​ that can decide what gesture it was and send it to the appropriate widget.

But in your case both scrolling are vertical how wolud you decide what control ​should take control? Try to modify example code and see how it goes.