Skip to main content
December 20, 2020
Question

How to detect Release of item of scrolllist ?

  • December 20, 2020
  • 9 replies
  • 1627 views

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
December 20, 2020

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

December 20, 2020

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
December 20, 2020

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