From f2ca6616f7466afe37455c2800448a40b57092f6 Mon Sep 17 00:00:00 2001 From: Mark W Date: Fri, 23 Aug 2024 17:35:58 +0200 Subject: [PATCH] Fix a bug with Hero talent popup (fixes #130) --- BlizzMove.lua | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/BlizzMove.lua b/BlizzMove.lua index ee9c12c..7c16d1a 100644 --- a/BlizzMove.lua +++ b/BlizzMove.lua @@ -1325,10 +1325,15 @@ do -- fix anchor family connection issues when opening/closing the hero talents dialog if addOnName == "Blizzard_PlayerSpells" and _G.HeroTalentsSelectionDialog and _G.PlayerSpellsFrame then - _G.HeroTalentsSelectionDialog:StartMoving(); - _G.HeroTalentsSelectionDialog:StopMovingOrSizing(); - _G.PlayerSpellsFrame:StartMoving(); - _G.PlayerSpellsFrame:StopMovingOrSizing(); + local function startStopMoving(frame) + local backup = frame:IsMovable(); + frame:SetMovable(true); + frame:StartMoving(); + frame:StopMovingOrSizing(); + frame:SetMovable(backup); + end + startStopMoving(_G.HeroTalentsSelectionDialog); + PlayerSpellsFrame:HookScript('OnShow', startStopMoving); end if addOnName == self.name then