hooksecurefunc replaces the function so OnMouswheel is now calling the old function.
You could try:
Code:
hooksecurefunc("SpellBook_GetCurrentPage", function(self, value, scrollBar)
print("test")
end)
Although that will call your function for the next/prev. page clicks as well as SpellBookFrame_UpdatePages().
Edit: That won't work because the function doesn't get called in the pet spellbook.
Last
bullet point
If you want to securely hook a frame's script handler, use Frame:HookScript:
|
Which brings us back to the OP.