1
NGUI 3 Documentation / Re: UIScrollView
« on: February 09, 2016, 10:43:39 AM »
I have two different ScrollViews. Both with 5 Items. One with Words and one with BackgroundImages for each word. When I center one of the Words, I call BackgroundImages.centerOn that Word.
This works good, when I go from word 2->3 or 3->4 or 3->5, but when I go from 4->1 it goes backwards, instead of forward, because I think centerOn takes the shortest way to the target.
Is there a way that it goes the same direction the WordScollView goes and not the shortest way or do I have to modify the UICenterOnChild for this?
Cheers,
Mourkain
This works good, when I go from word 2->3 or 3->4 or 3->5, but when I go from 4->1 it goes backwards, instead of forward, because I think centerOn takes the shortest way to the target.
Is there a way that it goes the same direction the WordScollView goes and not the shortest way or do I have to modify the UICenterOnChild for this?
Cheers,
Mourkain
