mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-18 02:30:50 +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()
|
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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user