Skip to main content
Dec 20, 2020 2:16 PM UTC
Question

How to detect Release of item of scrolllist ?

I want work with scrolllist this way: touching and dragging -> scrolling the list of files, pressing (without drag) and releasing -> go to directory after releasing.

Question: how can i get Release event? Scrollist has onle 2 events - setItemSelectedCallback and setItemPressedCallback

This topic has been closed for replies.

9 replies

MM..1
Super User
Dec 20, 2020 3:00 PM UTC

Try read this Workaround for swipe containers not swiping if dragged on a button within (st.com)

Or simpiy you need activate onclicklistener maybe not release

Dec 20, 2020 4:34 PM UTC

Problem.....

If I create more than 9 files - system halts when I scroll list DOWN.

The program halts during the execution of scrollList1UpdateItem() that is called for no apparent reason. is this normal? I don't update the elements, but for some reason when scrolling down scrollList1UpdateItem is called.

Should it be called while scrollin DOWN?

MM..1
Super User
Dec 20, 2020 4:42 PM UTC

scrollList1UpdateItem is called by system on every changes and need be writed as i show, reflect all values in itemIndex.

Please read how scrollist class work in reference ScrollList | TouchGFX Documentation