chat: fix scrollwheel on chat frames

This commit is contained in:
shagu
2018-08-18 21:39:07 +02:00
parent 4d8f090c19
commit fe1b7cd902
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -344,18 +344,18 @@ pfUI:RegisterModule("chat", function ()
local function ChatOnMouseWheel()
if (arg1 > 0) then
if IsShiftKeyDown() then
frame:ScrollToTop()
this:ScrollToTop()
else
for i=1, C.chat.global.scrollspeed do
frame:ScrollUp()
this:ScrollUp()
end
end
elseif (arg1 < 0) then
if IsShiftKeyDown() then
frame:ScrollToBottom()
this:ScrollToBottom()
else
for i=1, C.chat.global.scrollspeed do
frame:ScrollDown()
this:ScrollDown()
end
end
end
@@ -461,7 +461,7 @@ pfUI:RegisterModule("chat", function ()
end
frame:EnableMouseWheel(true)
frame:SetScript("OnMouseWheel", chatOnMouseWheel)
frame:SetScript("OnMouseWheel", ChatOnMouseWheel)
end
-- update dock frame for all windows