mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-22 15:46:56 +00:00
chat: fix scrollwheel on chat frames
This commit is contained in:
+5
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user