Quantcast

Apparenly I stole scrolls from other tabs. This fixes #251

Darthpred [08-03-16 - 19:35]
Apparenly I stole scrolls from other tabs. This fixes #251
Filename
ElvUI_SLE/modules/Armory/CharacterArmory/Stats.lua
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