From 9f46acaa04ef6adcbe6ed5b525f3d2ebda5a1f36 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Wed, 3 Aug 2016 22:35:53 +0300 Subject: [PATCH] Apparenly I stole scrolls from other tabs. This fixes #251 --- ElvUI_SLE/modules/Armory/CharacterArmory/Stats.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ElvUI_SLE/modules/Armory/CharacterArmory/Stats.lua b/ElvUI_SLE/modules/Armory/CharacterArmory/Stats.lua index d4be0bd..87f7dc6 100644 --- a/ElvUI_SLE/modules/Armory/CharacterArmory/Stats.lua +++ b/ElvUI_SLE/modules/Armory/CharacterArmory/Stats.lua @@ -266,4 +266,20 @@ CA.ScrollFrame:SetScript("OnMouseWheel", function(self, delta) cur_val = math_max(min_val, cur_val - 22) CA.Scrollbar:SetValue(cur_val) end +end) + +PaperDollSidebarTab1:HookScript("OnShow", function(self,event) + CA.ScrollframeParentFrame:Show() +end) + +PaperDollSidebarTab1:HookScript("OnClick", function(self,event) + CA.ScrollframeParentFrame:Show() +end) + +PaperDollSidebarTab2:HookScript("OnClick", function(self,event) + CA.ScrollframeParentFrame:Hide() +end) + +PaperDollSidebarTab3:HookScript("OnClick", function(self,event) + CA.ScrollframeParentFrame:Hide() end) \ No newline at end of file -- 1.7.9.5