In the GUI I created, dragging is moving beyond the limits I set.
Thank you in advance to anyone who can assist!
the code:
local MIN_SLIDER_SCALE = -1
local MAX_SLIDER_SCALE = 1
UIDragDetector = Roact.createElement("UIDragDetector", {
DragStyle = Enum.UIDragDetectorDragStyle.TranslateLine,
ResponseStyle = Enum.UIDragDetectorResponseStyle.Scale,
MaxDragTranslation = UDim2.fromScale(MAX_SLIDER_SCALE, 0),
MinDragTranslation = UDim2.fromScale(MIN_SLIDER_SCALE, 0),
[Roact.Ref] = self.draggerRef,
}),