package org.timepedia.chronoscope.client.browser.event;

import com.google.gwt.core.client.GWT;
import com.google.gwt.libideas.event.client.ClickEvent;
import com.google.gwt.libideas.event.client.ClickHandler;

import org.timepedia.chronoscope.client.Chart;
import org.timepedia.chronoscope.client.browser.DOMView;

/**
 * Handles the event where the user clicks on the chart.
 *
 * @author Chad Takahashi
 */
public class ChartMouseClickHandler extends AbstractEventHandler<ClickHandler>
    implements ClickHandler {

  public void onClick(ClickEvent event) {
    ChartState chartInfo = getChartState(event);
    Chart chart = chartInfo.chart;
    chartInfo.maybeDrag = false;
    chart.setAnimating(false);

    int x = getLocalX(event);
    int y = getLocalY(event);
    GWT.log("mouseclick: x=" + x + ", y=" + y, null);
    boolean handled = false;
    if (chart.click(x, y)) {
      // Something on the chart was "hit".  do nothing.
      handled = true;
    }

    ((DOMView) chart.getView()).focus();
    chartInfo.setHandled(true);
  }
}

@@ -772,199 +772,26 @@
     
-GWT.log(%22mouseclick: x=%22 + x + %22, y=%22 + y, null);%0A    boolean handled = false;%0A    if (chart.click(x, y)) %7B%0A      // Something on the chart was %22hit%22.  do nothing.%0A      handled = true;%0A    %7D
+chart.click(x, y);
 %0A%0A  

Remove logging statement.