Lua Code:
[
self:SetAttribute("clickcast_onenter", [[
self:ClearBindings()
self:SetBindingClick(1, "MOUSEWHEELUP", self, "Button6")
self:SetBindingClick(1, "ALT-MOUSEWHEELUP", self, "Button7")
self:SetBindingClick(1, "CTRL-MOUSEWHEELUP", self, "Button8")
self:SetBindingClick(1, "SHIFT-MOUSEWHEELUP", self, "Button9")
self:SetBindingClick(1, "MOUSEWHEELDOWN", self, "Button10")
self:SetBindingClick(1, "ALT-MOUSEWHEELDOWN", self, "Button11")
self:SetBindingClick(1, "CTRL-MOUSEWHEELDOWN", self, "Button12")
self:SetBindingClick(1, "SHIFT-MOUSEWHEELDOWN", self, "Button13")
]])
self:SetAttribute("clickcast_onleave", [[
self:ClearBindings()
]])
When I mouseover an unit button, and then the group changes before I do "onleave". (eg. someone leaves the party)
This action causes the issue I mentioned above, which override my camera zooming.
Is there any "onhide" attribute on the oUF raidframes, that I can "clearbindings"?