From 6abb368f85bc411d148c848cecf8918c2682f456 Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 30 Apr 2025 01:00:01 +0200 Subject: [PATCH] raid: use own frame to determine current scale --- mods/raid.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/raid.lua b/mods/raid.lua index d13adbc..2d73bb8 100644 --- a/mods/raid.lua +++ b/mods/raid.lua @@ -566,7 +566,7 @@ module.enable = function(self) this.dragging = true local px, py = GetCursorPosition() - local scale = UIParent:GetEffectiveScale() + local scale = this:GetEffectiveScale() px, py = px / scale, py / scale raid.toggle:ClearAllPoints() raid.toggle:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", -8, py-32) @@ -589,7 +589,7 @@ module.enable = function(self) if not this.dragging then return end local px, py = GetCursorPosition() - local scale = UIParent:GetEffectiveScale() + local scale = this:GetEffectiveScale() px, py = px / scale, py / scale raid.toggle:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", -8, py-32) end)