Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | duke_meister | |
Old Version | Published before Godot 3 was released. |
Hi there. I’d like to have the ItemList scrollable by touch (specifically on Android), similar to using a ScrollContainer. So it would allow me to scroll by touch, and also select an item by touch, as per common on Android with lists of items.
Any ideas?
I thought of:
- Extending ItemList, handling touch input events, and scrolling the ItemList in response. Couple of problems: I can’t see how to scroll it programmatically, and how to remove the scroll bar.
- edit: removed
edit: 3. Add items (e.g. TextureFrame, Label) to ScrollContainer, and somehow bypass input events on these items if they are DRAG events, allowing ScrollContainer to process those, and the items only process ‘press’ type events.
(Bonus points for swiping an item out of the list, although I can see this being a custom control).