Skip to content

Commit

Permalink
Fix issue with opening/closing the talent tree UI when in combat afte…
Browse files Browse the repository at this point in the history
…r scaling the frame
  • Loading branch information
Numynum committed Nov 11, 2022
1 parent 93e9d7a commit f8ee13c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/scaleTalentFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ function Module:SetupHook(addon)
self.db[settingKey] = frame:GetScale();
end

self:HookScript(frame, 'OnMouseWheel', function(_, delta) self:OnMouseWheel(frame, delta, settingKey); end);
self:HookScript(buttonsParent, 'OnMouseWheel', function(_, delta) self:OnMouseWheel(frame, delta, settingKey); end);
self:HookScript(frame, 'OnShow', function() self:OnShow(frame, settingKey); end);
self:SecureHookScript(frame, 'OnMouseWheel', function(_, delta) self:OnMouseWheel(frame, delta, settingKey); end);
self:SecureHookScript(buttonsParent, 'OnMouseWheel', function(_, delta) self:OnMouseWheel(frame, delta, settingKey); end);
self:SecureHookScript(frame, 'OnShow', function() self:OnShow(frame, settingKey); end);

frame:SetScale(self.db[settingKey]);
end
Expand Down

0 comments on commit f8ee13c

Please sign in to comment.