- Home /
Drag object inside ScrollRect
Hi, I have the following situation:
A game object with a ScrollRect component which has many child game objects that implement the IBeginDragHandler
, IDragHandler
and IEndDragHandler
interfaces, i.e. a scrollable container that has children that should be dragged out from the container.
The thing is, the Drag interface of the children is interfering with the ScrollRect scrolling events, so unless I disable or remove the Draggable component from the children I'm unable to scroll the container.
I've already tried enabling/disabling the children in runtime but there seems to be an issue there since enabling a Draggable component while the mouse is already pressed doesn't seem to allow to trigger the Dragging events automatically and hence, we can't move the object.
We have already tried this solution but doesn't seem to work as I stated in a comment.
Any help would be much appreciated.
Your answer
![](https://koobas.hobune.stream/wayback/20220612170025im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
UI Input Simulation 0 Answers
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Prevent Drag button inside scroll rect 0 Answers
Scrollbars 1 Answer