public void mousePressed(MouseEvent e) {
			// click, moved from mouseClicked due
			// to problems with focus and stuff
			if ((e.getModifiers() & InputEvent.BUTTON1_MASK) != 0) {
				Point p = e.getPoint();
				CPArtwork artwork = controller.getArtwork();

				int layerIndex = getLayerNb(p);
				if (layerIndex >= 0 && layerIndex < artwork.getLayersNb()) {
					CPLayer layer = artwork.getLayer(layerIndex);
					if (p.x < eyeW) {
						artwork.setLayerVisibility(layerIndex, !layer.visible);
					} else {
						artwork.setActiveLayer(layerIndex);
					}

				}
			}

			if ((e.getModifiers() & InputEvent.BUTTON1_MASK) != 0) {
				Dimension d = getSize();
				CPArtwork artwork = controller.getArtwork();
				Object[] layers = artwork.getLayers();

				int layerOver = (d.height - e.getPoint().y) / layerH;
				if (layerOver < layers.length) {
					layerDrag = true;
					layerDragY = e.getPoint().y;
					layerDragNb = layerOver;
					repaint();
				}
			}
		}