Skip to main content
Senior III
June 16, 2025
Question

scroll list with scrollable containers can't be scrolled

  • June 16, 2025
  • 2 replies
  • 298 views

I have a scrollabe list where each item is a scrollable container.

I'm handling the scrollable container with this logic https://community.st.com/t5/stm32-mcus-touchgfx-and-gui/doscroll-doesn-t-scroll-the-full-text/m-p/813190#M43805 (during handleTickEvent I manually change position of the text via code). Each scrollable container has the Horizontal scroll disable with enableHorizontalScroll(false);

Now, I'm facing this issue https://community.st.com/t5/stm32-mcus-touchgfx-and-gui/event-dispatching-bubbling-and-event-interception/m-p/659244#M36957 where when I want to slide the list, I have to click the tiny portion between two items.

Is there a way to bypass the "scrollable container overrides this method to virtually insert itself as the last child in order to intercept the touch events" as I have disabled the scroll so, no need to intercept the scrollable container's events?

 

2 replies

Senior
June 17, 2025

I asked something similar in the past.
https://community.st.com/t5/stm32-mcus-touchgfx-and-gui/nested-scrollbase/m-p/805868/highlight/true#M43526

I had to overwrite the ScrollableContainer.
If you figure out new ways to improve it.
Please keep me updated.
We could probably drop it in the shared Widget posts.

nico23Author
Senior III
June 17, 2025

Hi @Marc_LM 

Thanks for your answer. Yes, I was trying to find a solution that doesn't involve rewrite the class...