Getting child from scrollbar positions


I am trying to use the scrollbar snapping to somehow get a child ID.

I want it to be like the roller, but instead of getting a value, I’d like to get some sort of “snap index” for retrieving user input.

For example:

The scrollbar snaps in the middle of these flag icons (blue field), based on the snap position I would like to retrieve some sort of integer (or child* directly) so I could couple that back to, for instance, a language setting.

I set this up using a “panel” from SquareLine Studio with flex and a scrollbar. The flags are children of this panel. Is there a “snap index” for scroll bars I could use? I have not been able to find anything like it.

Kind regards