From f8ee13c90da9b534715162f40bab8147633d2e41 Mon Sep 17 00:00:00 2001 From: Mark W Date: Fri, 11 Nov 2022 23:34:01 +0100 Subject: [PATCH] Fix issue with opening/closing the talent tree UI when in combat after scaling the frame --- modules/scaleTalentFrame.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/scaleTalentFrame.lua b/modules/scaleTalentFrame.lua index af74fdd..a6a8489 100644 --- a/modules/scaleTalentFrame.lua +++ b/modules/scaleTalentFrame.lua @@ -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