Skip to content

Commit

Permalink
Fix a bug with Hero talent popup (fixes #130)
Browse files Browse the repository at this point in the history
  • Loading branch information
Numynum committed Aug 23, 2024
1 parent 69261b7 commit f2ca661
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions BlizzMove.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f2ca661

Please sign in to comment.