Originally Posted by Iyanga
OnMoveStop
|
I didn't misspeak. I use OnMouseUp.
Lua Code:
znb:SetHandler("OnReceiveDrag", function(self)
--if not db.locked then
self:StartMoving()
--end
end)
znb:SetHandler("OnMouseUp", function(self)
self:StopMovingOrResizing()
local _,a,_,b,x,y = self:GetAnchor()
db.anchor = {["a"]=a, ["b"]=b, ["x"]=x, ["y"]=y}
end)