View Single Post
10-01-19, 09:01 PM   #5
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 666
The "frame" in my example is your addon's options frame, or even a specific colored box within your options.

Lua Code:
  1. local myframe=CreateFrame("frame")
  2. -- frame sizing, parenting, texture, color, etc
  3. myframe:SetScript("OnMouseUp",function(self,button)
  4.     -- the cursor info and clear here
  5.     -- button == "LeftButton" or "RightButton"
  6. end)

The code will do nothing if the user doesn't release the item over this specific frame. No need to check for any other location.
  Reply With Quote