cancel
Showing results for 
Search instead for 
Did you mean: 

scroll list with scrollable containers can't be scrolled

nico23
Senior II

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 2
Marc_LM
Senior

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.

nico23
Senior II

Hi @Marc_LM 

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