code: protected void mouseReleased(UIComponent component, int button)
  	{
  		try
  		{
  			if (inventoryContainer != null)
  			{
  				if (inventoryContainer.shouldResetDrag(button))
  				{
  					MalisisGui.sendAction(ActionType.DRAG_RESET, null, 0);
  					UISlot.buttonRelased = false;
  					return;
  				}
  				if (inventoryContainer.shouldEndDrag(button))
  				{
  					MalisisGui.sendAction(ActionType.DRAG_END, null, 0);
  					return;
  				}
  			}
  
  			if (component != null && component.isEnabled())
  			{
  				MouseButton mb = MouseButton.getButton(button);
  				if (draggedComponent != null)
  					draggedComponent.onButtonRelease(mb);
  				if (component == focusedComponent)
  				{
  					if (mb == MouseButton.LEFT)
  						component.onClick();
  					else if (mb == MouseButton.RIGHT)
  						component.onRightClick();
  				}
  			}
  		}
  		catch (Exception e)
  		{
  			MalisisCore.message("A problem occured : " + e.getClass().getSimpleName() + ": " + e.getMessage());
  			e.printStackTrace(new PrintStream(new FileOutputStream(FileDescriptor.out)));
  		}
  	}
docs: Called when a mouse button is released.