[FEATURE] Improving performance
PhenomDevel opened this issue ยท 0 comments
Instead of relying on a poll every X milliseconds, we should use the OnEnter' and
OnLeave' events on every frame to trigger the MouseoverFade to be recalculated.
PlayerFrame:HookScript("OnEnter", function() print("Enter") MouseoverFrameFading:RefreshMouseoverFrameAlphas("PlayerFrame") end)
PlayerFrame:HookScript("OnLeave", function() print("Leave") MouseoverFrameFading:RefreshMouseoverFrameAlphas("PlayerFrame") end)