chat: add scroll speed option

This commit is contained in:
William Gunter
2017-10-12 21:06:25 +02:00
committed by shagu
parent 4300d5472a
commit 2210e6c904
3 changed files with 8 additions and 2 deletions
+6 -2
View File
@@ -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)