Skip to content

Commit

Permalink
Fix mouse wheel on custom trigger event
Browse files Browse the repository at this point in the history
Fixes: #4830
  • Loading branch information
InfusOnWoW committed Jan 25, 2024
1 parent e690f9f commit ccc0486
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ end
local function OnEditFocusLost(self) -- EditBox
self:HighlightText(0, 0)
self.obj:Fire("OnEditFocusLost")
self.obj.scrollFrame:EnableMouseWheel(false);
end

local function OnEnter(self) -- EditBox / ScrollFrame
Expand Down Expand Up @@ -166,6 +167,7 @@ end
local function OnEditFocusGained(frame)
AceGUI:SetFocus(frame.obj)
frame.obj:Fire("OnEditFocusGained")
frame.obj.scrollFrame:EnableMouseWheel(true);
end

--[[-----------------------------------------------------------------------------
Expand Down Expand Up @@ -314,6 +316,7 @@ local function Constructor()
scrollBG:SetBackdropBorderColor(0.4, 0.4, 0.4)

local scrollFrame = CreateFrame("ScrollFrame", ("%s%dScrollFrame"):format(Type, widgetNum), frame, "UIPanelScrollFrameTemplate")
scrollFrame:EnableMouseWheel(false);

local scrollBar = _G[scrollFrame:GetName() .. "ScrollBar"]
scrollBar:ClearAllPoints()
Expand Down

0 comments on commit ccc0486

Please sign in to comment.