Starts moving the frame-inheriting widget as the user moves the mouse cursor.
- This function triggers an error if called on a non-movable widget.
- This function automatically flags the widget as user-positioned. The position of named, movable, user-positioned frames created before PLAYER_LOGIN is automatically restored by the client from the layout cache when the player logs in. If you'd like to avoid this behavior, call
Frame:SetUserPlaced(false)immediately after calling this function.
- Any existing anchors on the widget are cleared. When the frame stops moving (either because Frame:StopMovingOrSizing() was called or because the frame or one of its ancestors was hidden), it will be anchored to the nearest corner of the screen.