View Single Post
04/26/14, 03:15 PM   #6
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 648
Originally Posted by Iyanga View Post
OnMoveStop
I didn't misspeak. I use OnMouseUp.
Lua Code:
  1. znb:SetHandler("OnReceiveDrag", function(self)
  2.             --if not db.locked then
  3.                 self:StartMoving()
  4.             --end
  5.         end)
  6.     znb:SetHandler("OnMouseUp", function(self)
  7.             self:StopMovingOrResizing()
  8.             local _,a,_,b,x,y = self:GetAnchor()
  9.             db.anchor = {["a"]=a, ["b"]=b, ["x"]=x, ["y"]=y}
  10.         end)
  Reply With Quote