Add support MouseWheel for mail, merchant and spellbook

This commit is contained in:
Bunny67
2018-07-15 11:37:17 +03:00
parent 497a6926b1
commit e472032d32
3 changed files with 46 additions and 0 deletions
+13
View File
@@ -22,6 +22,19 @@ local function LoadSkin()
E:Point(MerchantFrame.backdrop, "TOPLEFT", 10, -11)
E:Point(MerchantFrame.backdrop, "BOTTOMRIGHT", -28, 60)
MerchantFrame:EnableMouseWheel(true)
MerchantFrame:SetScript("OnMouseWheel", function()
if arg1 > 0 then
if MerchantPrevPageButton:IsShown() and MerchantPrevPageButton:IsEnabled() == 1 then
MerchantPrevPageButton_OnClick()
end
else
if MerchantNextPageButton:IsShown() and MerchantNextPageButton:IsEnabled() == 1 then
MerchantNextPageButton_OnClick()
end
end
end)
S:HandleCloseButton(MerchantFrameCloseButton, MerchantFrame.backdrop)
for i = 1, 12 do