diff --git a/include/customDefinitions.d.ts b/include/customDefinitions.d.ts index 4e316f64c..699595dfb 100644 --- a/include/customDefinitions.d.ts +++ b/include/customDefinitions.d.ts @@ -1169,7 +1169,10 @@ interface UIDragDetector extends UIComponent { proposedRotation: number, ) => LuaTuple<[UDim2, number, Enum.UIDragDetectorDragRelativity?, Enum.UIDragDetectorDragSpace?]>, ): RBXScriptConnection; - SetDragStyleFunction(this: UIDragDetector, callback: (inputPosition: UDim2) => UDim2 | void): void; + SetDragStyleFunction( + this: UIDragDetector, + callback: (inputPosition: Vector2) => LuaTuple<[UDim2, number]> | UDim2 | void, + ): void; } /** @client */ diff --git a/include/generated/None.d.ts b/include/generated/None.d.ts index c51571531..b63ec0aa1 100644 --- a/include/generated/None.d.ts +++ b/include/generated/None.d.ts @@ -42192,7 +42192,10 @@ interface UIDragDetector extends UIComponent { * @param this Instance which facilitates and encourages interaction with UI elements in an experience. * @param function Function for monitoring `DragContinue` signals. This function receives the signal's screen space input position and returns a `UDim2` and float containing the desired motion of the drag in the desired space and relativity. If this function returns `nil`, the object will not be moved. */ - SetDragStyleFunction(this: UIDragDetector, callback: (inputPosition: UDim2) => UDim2 | void): void; + SetDragStyleFunction(this: UIDragDetector, callback: (inputPosition: Vector2) => LuaTuple<[ + UDim2, + number + ]> | UDim2 | void): void; /** * Fires when a user continues dragging the UI element after `DragStart` has been initiated. *