Use region:IsMouseOver instead of the MouseIsOver global

This commit is contained in:
Brues
2026-10-22 21:37:50 -05:00
parent b9f473c049
commit d881d73246
5 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -180,7 +180,7 @@ pfUI:RegisterModule("map", function ()
my = (( my + height / 2 ) - ( y / scale )) / height * 100
end
if mx and my and MouseIsOver(WorldMapButton) then
if mx and my and WorldMapButton:IsMouseOver() then
WorldMapButton.coords.text:SetFormattedText('%.1f / %.1f', mx, my)
else
WorldMapButton.coords.text:SetText("")