Thanks to both Kkthnx and lightspark.
I just revised my code and found that I had the following lines of code:
Lua Code:
frame:SetScript("OnEnter", UnitFrame_OnEnter);
frame:SetScript("OnLeave", UnitFrame_OnLeave);
What I thought was as long as I don't enable a mouse these functions would not run, but seems like these would automatically enable mouse even if I don't manually enable them.
Good practice haha!!
But lightspark, do you know what is going on with a bug on the video?
I really can't figure out why this is happening