GUI Elements not locking to cursor position when dragging

Hello. I’m rather new to GUI design and I’m hoping this is a very simple fix as I haven’t been able to find any answers online for this problem.

When I try dragging GUI elements (buttons, text, etc.) the element does not lock to my cursor as I’m dragging it, moving way farther than my cursor is actually moving. This doesn’t prevent me from doing my work, however it is very annoying.

Use an UIGridLayout or an UIListLayout
image

and change its values

image
image

To adjust it to all devices scale it
image