if (layer instanceof TileLayer) {
currentBrush.endPaint();
}
} else if (currentPointerState == PS_MOVEOBJ) {
if (layer instanceof ObjectGroup && currentObject != null && (moveDist.x != 0 || moveDist.x != 0)) {
undoSupport.postEdit(new MoveObjectEdit(currentObject, moveDist));
}
}
if (/* bMouseIsDragging && */currentPointerState == PS_PAINT || currentPointerState == PS_ADDOBJ) {
Point tile = mapView.screenToTileCoords(event.getX(), event.getY());