@Override
	public void mousePressed(MouseEvent e)
	{
		Point2D.Float position = new Point2D.Float(e.getPoint().x - offset, e.getPoint().y - offset);
		if (selectedObject != null)
			dragDirection = selectedObject.isInsideBorder(position);
		frame.requestFocus();
	}