UI Dragging Issue

Howdy! I was looking into this, and I wanted to know if anyone with experience in this field knows why this causes the UI to jump up whenever you first start dragging each time? (behavior only With IgnoreGuiInset enabled)

local function update(input)
			local delta = input.Position - dragStart
			local newXOffset = startPos.X + delta.X
			local newYOffset = startPos.Y + delta.Y

			local x = math.clamp(newXOffset, 0, baseClip.AbsoluteSize.X - mainClone.AbsoluteSize.X)
			local y = math.clamp(newYOffset, 0, baseClip.AbsoluteSize.Y - mainClone.AbsoluteSize.Y)

			mainClone.Position = UDim2.new(0, x, 0, y)
		end

https://cdn.discordapp.com/attachments/1247179699424202793/1257086861801820243/Screen_Recording_2024-06-30_at_5.32.50_PM.mov?ex=668320df&is=6681cf5f&hm=8b733bd0ba49e8299a954570dd5d597bae8e1aabe8f5afde142947ac27bd77a8&

2 Likes

I’ve found the source of this issue; It is now resolved.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.