- Home /
Scrollrect Not Working With Canvas Overlay
Hello. I have encountered an issue where the Srcollrect does not work when setting the Canvas render mode to Overlay.
I have my objects in the scene as follows:
Panel (Scrollrect, Image, Mask components)
-----List (Image, Content Size Fitter, Vertical Layout Group)
---------ListObject (Image, Layout Element) prefab
I am able to scroll the contents in the list with the scroll wheel of my mouse, but clicking and dragging is does not work. When I look at the EventSystem for the UI, pointerDrag detects the Panel object when I hold the mouse.
Now, this behavior only happens when the Canvas Render mode is setup to Screen Space - Overlay. Setting the Canvas Render mode to Screen Space - Camera or World Space will allow the contents in the List object to be scrolled by clicking and dragging.
I am still fairly new to Unity, so any help to resolve this issue would be greatly appreciated.
Answer by Sawula · Mar 16, 2017 at 06:10 PM
Got that exact same problem No matter how I set it up, scrollbars will not work in Screen-space overlay. is it a unity fault?
Your answer
![](https://koobas.hobune.stream/wayback/20220612091354im_/https://answers.unity.com/themes/thub/images/avi.jpg)