Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: wallabie on March 24, 2014, 02:19:58 AM

Title: Scrollview with clickable buttons not scrolling.
Post by: wallabie on March 24, 2014, 02:19:58 AM
On IOS I'm trying to duplicate a basic horizontal scrollview for photos viewing.

1. I have a horizontal scrollview
2. inner items are icons of photos that the user can click to select (implemented as image buttons)
3. Buttons work as expected when interacting.
4. Not able to scroll the scrollview when swiping.
5. When not using buttons, and only image sprites, then scrolling works.
6. It seems that the scrollview component is not able to differentiate between a touch/drag or swipe as opposed to touch to select.

Video link:   https://dl.dropboxusercontent.com/u/48378123/NguiNotScroll.mp4
Title: Re: Scrollview with clickable buttons not scrolling.
Post by: wallabie on March 24, 2014, 06:06:34 AM
Found the answer:

Had to add "UIDragScrollView" component to the scrollview items.