Skip to content
Snippets Groups Projects
Commit 60113bde authored by PilzAdam's avatar PilzAdam
Browse files

Dont move item back when not clicking on a slot

parent 1309e521
Branches
Tags
No related merge requests found
......@@ -2462,12 +2462,7 @@ bool GUIFormSpecMenu::OnEvent(const SEvent& event)
move_amount = 0;
}
}
else if(getAbsoluteClippingRect().isPointInside(m_pointer))
{
// Clicked somewhere else: deselect
m_selected_amount = 0;
}
else
else if (!getAbsoluteClippingRect().isPointInside(m_pointer))
{
// Clicked outside of the window: drop
if(button == 1) // right
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment