Originally Posted by myrroddin
Try a secure hook instead, which is always the best course of action when tampering with a Blizzard frame. And not seeing your entire code, do you have an EnableMouse() call somewhere? Do you need one?
|
Doesn't need one, SpellBookFrame is already mouse-enabled.
That being said, I can't even get this to work.
lua Code:
hooksecurefunc("SpellBookFrame_OnMouseWheel", function(self, value, scrollBar)
print("test")
end)
https://www.townlong-yak.com/framexm...kFrame.lua#960
I don't think I'm using it wrong, either. A non-secure hook works fine in that same scenario, but of course SpellBookPrevPageButton_OnClick() and SpellBookNextPageButton_OnClick() taint it if called from non-secure addon code.
Maybe they just don't want us being able to securely hook that.