mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-04 04:30:01 +00:00
chat: add scroll speed option
This commit is contained in:
+6
-2
@@ -387,13 +387,17 @@ pfUI:RegisterModule("chat", function ()
|
||||
if IsShiftKeyDown() then
|
||||
frame:ScrollToTop()
|
||||
else
|
||||
frame:ScrollUp()
|
||||
for i=1, C.chat.global.scrollspeed do
|
||||
frame:ScrollUp()
|
||||
end
|
||||
end
|
||||
elseif (arg1 < 0) then
|
||||
if IsShiftKeyDown() then
|
||||
frame:ScrollToBottom()
|
||||
else
|
||||
frame:ScrollDown()
|
||||
for i=1, C.chat.global.scrollspeed do
|
||||
frame:ScrollDown()
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user