ibyte
New Member
Posts: 24
|
Post by ibyte on May 20, 2020 19:31:49 GMT
I have a UI where I want to use another control to set the EnhancedScroller position programably. The scrolllist will contain 3 cells with 3 buttons each. Only one cell will be visible at a time. My concern is I do not want the user to be able to touch scroll the scroller but I still want the user to be able to interact with the buttons in each cellview.
Suggestion on how to block the touch scrolling without interfering with the child buttons?
Thanks
|
|
|
Post by echo17 on May 22, 2020 13:00:31 GMT
|
|
ibyte
New Member
Posts: 24
|
Post by ibyte on Jun 9, 2020 21:37:47 GMT
Thanks for the info. I have been able to stop the scrollview from moving but it still seems to take input as when I click and do a short drag, my cells are redrawn with the next cells view.
It appears to trigger from this code EnhnancedScroller.cs line 1841 - _Resize(true);
// if the scroll rect size has changed and looping is on, // or the loop setting has changed, then we need to resize if ( (loop && _lastScrollRectSize != ScrollRectSize) || (loop != _lastLoop) ) { _Resize(true); _lastScrollRectSize = ScrollRectSize;
_lastLoop = loop; }
|
|
|
Post by echo17 on Jun 10, 2020 13:28:55 GMT
Hmmm. If _Resize is being called from that spot then that means that either the size of the scroll rect has changed or looping was toggled (on or off). I would probably have to see a working example of this to give you a good diagnosis. You can zip up a simple example project and email it to my support email address (support_at_echo17.com). Please see this FAQ for more information: link
|
|
ibyte
New Member
Posts: 24
|
Post by ibyte on Jun 10, 2020 19:33:23 GMT
Thanks so much for the solution. If anyone else comes across this - the answer was to turn on "Loop while dragging"
|
|