mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 16:34:45 +00:00
Add support MouseWheel for mail, merchant and spellbook
This commit is contained in:
@@ -26,6 +26,19 @@ local function LoadSkin()
|
||||
E:Point(MailFrame.backdrop, "TOPLEFT", 10, -12)
|
||||
E:Point(MailFrame.backdrop, "BOTTOMRIGHT", -30, 74)
|
||||
|
||||
MailFrame:EnableMouseWheel(true)
|
||||
MailFrame:SetScript("OnMouseWheel", function()
|
||||
if arg1 > 0 then
|
||||
if InboxPrevPageButton:IsEnabled() == 1 then
|
||||
InboxPrevPage()
|
||||
end
|
||||
else
|
||||
if InboxNextPageButton:IsEnabled() == 1 then
|
||||
InboxNextPage()
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
for i = 1, INBOXITEMS_TO_DISPLAY do
|
||||
local mail = _G["MailItem"..i]
|
||||
local button = _G["MailItem"..i.."Button"]
|
||||
|
||||
Reference in New Issue
Block a user