Dont move item back when not clicking on a slot

master
PilzAdam 2013-12-03 18:05:36 +01:00
parent 1309e52198
commit 60113bde74
1 changed files with 1 additions and 6 deletions

View File

@ -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