if (playHead.containsPoint(p)) {
/* when we get a click on the marker, we need to switch mode to avoid
* getting confused with other drag operations (like select) */
oldMode = Main.map.mapMode;
oldCoor = getCoor();
PlayHeadDragMode playHeadDragMode = new PlayHeadDragMode(playHead);
Main.map.selectMapMode(playHeadDragMode);
playHeadDragMode.mousePressed(ev);
}
}
});
}