// options dialog
ObjectGroup group = (ObjectGroup) layer;
Point pos = mapView.screenToPixelCoords(event.getX(), event.getY());
MapObject obj = group.getObjectNear(pos.x, pos.y, mapView.getZoom());
if (obj != null) {
ObjectDialog od = new ObjectDialog(YaFrame.get(), obj, undoSupport);
od.getProps();
}
}
} else if (mouseButton == MouseEvent.BUTTON2 || mouseButton == MouseEvent.BUTTON1
&& (event.getModifiersEx() & InputEvent.ALT_DOWN_MASK) != 0) {
// Scroll with middle mouse button