4 Years Ago
remove OnStopDragging call from DragMouseRelease to prevent double-calling (#1695) DragMouseRelease calls dragndrop.Drop() which, in turn, calls panels' OnStopDragging() by having DragMouseRelease also call OnStopDragging() there was a double-call to that function reproduction: a = vgui.Create("DFrame") a:MakePopup() a:SetSize(300, 400) b = vgui.Create("DButton", a) b:Droppable("a") b:SetSize(120, 80) b:Center() b:SetText("drag'n'drop me") b.OnStopDragging = function() print("Dropped @", FrameNumber()) end