Why DLabel:IsHovered() doesn't work?

Just wondering why something like this doesn’t work:


function DLabel:Paint(width,height)
	if DLabel:IsHovered() then draw.RoundedBox(2,0,0,width,height,Color(255,120,120)) else draw.RoundedBox(2,0,0,width,height,Color(120,255,120)) end
end

DLabel:IsHovered() returns false regardless of whether my mouse is hovering the label or not.

Updated the wiki page for it:

Thanks!