-
How To Fix This Clipping Bug? ( do i need to make custom system ?)
-
When Turning Clips Descendants on There’s a dragging bug while when turning it off it fixes the bug but another clipping problem acquires.
CLIP OFF
CLIP ON
How To Fix This Clipping Bug? ( do i need to make custom system ?)
When Turning Clips Descendants on There’s a dragging bug while when turning it off it fixes the bug but another clipping problem acquires.
CLIP OFF
CLIP ON
Hmm, that does seem like the expected behavior for clip descendants.
You could try reparenting the frame being dragged so that it doesn’t get clipped and can be dragged outside the scrolling window while replacing the frame being dragged with a placeholder so the other items don’t shift.
Im currently trying to turn ClipDescendants to off when dragging and to On when stopped dragging (nvm its read only)
When you start dragging the Frame, store the AbsolutePosition
and AbsoluteSize
of the frame dragged. This allows you to retain its exact position and size unaffected by its current parent.
After obtaining the AbsolutePosition
and AbsoluteSize
, update the Frame’s Position
and Size
properties using the corresponding offset values.
Put the Frame out of the ScrollingFrame to a container like the ScreenGui
. This removes any clipping or constraints imposed by the ScrollingFrame or any other Frame.
Now that the Frame is in the ScreenGui
, proceed with dragging as usual, ensuring its position updates smoothly.
Note: If your ScreenGui
has the IngoreGuiInset
property enabled, you will need to add the GuiInset Y
value to the position offset Y
. You can obtain it with the following code:
local guiInsetY = game:GetService("GuiService"):GetGuiInset().Y
it looks like it stops dragging when changing the parent
It seems you’re facing an issue with how you drag your frame. Since you haven’t shared any code, it’s difficult to pinpoint the exact problem. However, I suggest printing the values you’re using when attempting to drag the frame. For example, check what position is being set for the frame and ensure that you’re correctly updating its position during the drag operation.
I got it working! you were pretty close. i cloned the frame because for some reason roblox stops listening to ui drag if you change the parent.
so how did i fix it?
AbsolutePosition
and AbsoluteSizeThis topic was automatically closed 14 days after the last reply. New replies are no longer allowed.