Skip to content

Get Mouse Focus

Game Version Wrapper

Compatibility wrapper for GetMouseFocus and GetMouseFoci client differences.

NamespaceEModuleCoreLifecyclewrapper
E:GetMouseFocus()

Compatibility wrapper for GetMouseFocus and GetMouseFoci client differences.

None.

Frame currently under the mouse, or nil.

local focus = E:GetMouseFocus()

Use when addon hover logic needs to survive the GetMouseFocus API transition.

Source: ElvUI/Game/Shared/General/API.lua:486