View Single Post
07-31-19, 07:01 AM   #2
siweia
A Flamescale Wyrmkin
 
siweia's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2011
Posts: 126
Lua Code:
  1. [
  2.         self:SetAttribute("clickcast_onenter", [[
  3.             self:ClearBindings()
  4.             self:SetBindingClick(1, "MOUSEWHEELUP", self, "Button6")
  5.             self:SetBindingClick(1, "ALT-MOUSEWHEELUP", self, "Button7")
  6.             self:SetBindingClick(1, "CTRL-MOUSEWHEELUP", self, "Button8")
  7.             self:SetBindingClick(1, "SHIFT-MOUSEWHEELUP", self, "Button9")
  8.             self:SetBindingClick(1, "MOUSEWHEELDOWN", self, "Button10")
  9.             self:SetBindingClick(1, "ALT-MOUSEWHEELDOWN", self, "Button11")
  10.             self:SetBindingClick(1, "CTRL-MOUSEWHEELDOWN", self, "Button12")
  11.             self:SetBindingClick(1, "SHIFT-MOUSEWHEELDOWN", self, "Button13")
  12.         ]])
  13.         self:SetAttribute("clickcast_onleave", [[
  14.             self:ClearBindings()
  15.         ]])

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"?
  Reply With Quote