} else if (currentPointerState == PS_MOVEOBJ) {
if (initialObjectLocation != null && currentObject != null) {
Point translation = new Point(currentObject.getX() - initialObjectLocation.x, currentObject.getY() - initialObjectLocation.y);
if (layer instanceof ObjectGroup && currentObject != null
&& (translation.x != 0 || translation.y != 0)) {
addEdit(new MoveObjectsEdit(currentObject, translation));
initialObjectLocation = null;
}
}
}