public void mouseDragged(MouseEvent e) {
		if (btn1Pressed && mapEdit.getPaintMode() != MapEdit.PAINT_FILL) {
			mapClicked(e.getX(), e.getY());
			// System.out.println(mapEdit.getSelectedTile());
			this.repaint();
		} else if (btn2Pressed) {
			int offX = e.getX() - grabX;
			int offY = e.getY() - grabY;
			Dimension d = viewport.getSize();
			Point p = viewport.getViewPosition();
			Point newPoint = new Point(p.x - offX, p.y - offY);
			viewport.setViewPosition(newPoint);

			dragged = true;
		}
	}