# HG changeset patch # User Flick # Date 1307814892 25200 # Node ID 499ca4edf033da3ec4fc52fd1058bf27b2679bbe # Parent f2ed8a8e2320cf5f4fd227649214acad34fc6885 Fixed Pet action buttons not accepting click-hold drags diff -r f2ed8a8e2320 -r 499ca4edf033 PetActionButton.lua --- a/PetActionButton.lua Thu May 12 17:16:43 2011 -0700 +++ b/PetActionButton.lua Sat Jun 11 10:54:52 2011 -0700 @@ -31,10 +31,11 @@ local _onReceiveDrag = -- function(self, button, kind, value, ...) [[ - if kind then -- pet spells on the cursor return nil from GetCursorInfo(), which is very strange + if kind == "petaction" then + return "petaction", self:GetAttribute("action") + else return kind, value, ... end - return "petaction", self:GetAttribute("action") ]] --