if (uiAction.isSelecting()) {
chart.setAnimating(false);
chart.zoomToHighlight();
} else if (uiAction.getSource() != null && uiAction.isDragging(uiAction.getSource()) && x != uiAction.getDragStartX()) {
if (uiAction.getSource() instanceof Overlay) {
((Overlay) uiAction.getSource()).fire(new ChartDragEndEvent(plot, x));
} else {
HistoryManager.pushHistory();
}
chart.setAnimating(false);