ScrollView snap to element

ScrollView snap to element
0.0 0

#1

Hi guys! I have a ScrollView working, but I need to snap to the nearest element when the player release the touch. Any idea? Thanks!


#2

You able to figure this out? OR anyone here?

I am looking to make one. Thanks!


#3

Hi, what exactly do you want to achieve with the ScrollView?


#4

I believe listview has scrollToItem option.


#5

@kds I am looking for carousel that snap item to the center. You have any examples?


#6

I don’t think there is a ready solution for that, at least I don’t see it.

I would check scrollToPercentVertical (if you want to scroll vertically) where percent is your “item” position (in %) inside the scroll container.

I haven’t checked ListView, but it also may work.


#7

@kds Thanks!