Wowpedia
Advertisement
Wowpedia
240,442
pages

Registers the widget for dragging with a mouse button.

frame:RegisterForDrag ([button1, button2, ...])

Arguments

button1, button2, ... 
string?Optional. Could be nil. - "LeftButton", "RightButton", "MiddleButton", "Button4", "Button5", ..., "ButtonN".

Details

  • Pass multiple arguments to register several buttons, or none to remove any previous registrations.
  • Subsequent calls replace any prior ones.
  • Enables OnDragStart and OnDragStop.
  • Blocks OnMouseUp and OnClick when dragging with a registered button.

See also

Advertisement