chat: fix scrollwheel on chat frames

This commit is contained in:
shagu
2018-08-18 21:39:41 +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() local function ChatOnMouseWheel()
if (arg1 > 0) then if (arg1 > 0) then
if IsShiftKeyDown() then if IsShiftKeyDown() then
frame:ScrollToTop() this:ScrollToTop()
else else
for i=1, C.chat.global.scrollspeed do for i=1, C.chat.global.scrollspeed do
frame:ScrollUp() this:ScrollUp()
end end
end end
elseif (arg1 < 0) then elseif (arg1 < 0) then
if IsShiftKeyDown() then if IsShiftKeyDown() then
frame:ScrollToBottom() this:ScrollToBottom()
else else
for i=1, C.chat.global.scrollspeed do for i=1, C.chat.global.scrollspeed do
frame:ScrollDown() this:ScrollDown()
end end
end end
end end
@@ -461,7 +461,7 @@ pfUI:RegisterModule("chat", function ()
end end
frame:EnableMouseWheel(true) frame:EnableMouseWheel(true)
frame:SetScript("OnMouseWheel", chatOnMouseWheel) frame:SetScript("OnMouseWheel", ChatOnMouseWheel)
end end
-- update dock frame for all windows -- update dock frame for all windows
+1 -1
View File
@@ -2,7 +2,7 @@
## Title: |cff33ffccpf|cffffffffUI ## Title: |cff33ffccpf|cffffffffUI
## Author: Shagu ## Author: Shagu
## Notes: A complete user interface replacement. ## Notes: A complete user interface replacement.
## Version: 3.14.0 ## Version: 3.14.1
## SavedVariables: pfUI_profiles, pfUI_addon_profiles, pfUI_cache ## SavedVariables: pfUI_profiles, pfUI_addon_profiles, pfUI_cache
## SavedVariablesPerCharacter: pfUI_config, pfUI_init, pfUI_playerDB ## SavedVariablesPerCharacter: pfUI_config, pfUI_init, pfUI_playerDB