- Home /
Question by
Clevereen · Apr 20, 2021 at 07:00 PM ·
uidragbutton trigger eventsscroll
Prevent Drag button inside scroll rect
Hello Everyone,
I have a scroll rect in my scene that contains buttons. The buttons inside the scroll rect can be dragged on Y axis (each buttons contains a script with OnDrag). The problem is:
Whenever I try to scroll the ScrollRect, the drag of the buttons blocks the scrollrect.
Is there anyway to Drag the button ONLY if I am not scrolling? A sort of "OnDrag" priority.
thanks.
Comment
Your answer
Follow this Question
Related Questions
Drag on Scroll Rect Non Proportional 0 Answers
Can you use UI Scroll Rect for camera movement? 1 Answer
ScrollRect scrollbar drag being overridden and stuttering to top 0 Answers
[UI] Profiler scroll rect 0 Answers
Is there a way to prevent UI buttons from being triggered by keyboard inputs? 1 Answer