Disable zoom rect on mouse event
@@ -96,7 +96,6 @@ public class EChartViewer extends ChartViewer {
* stickyZeroForRangeAxis = false <br>
* Graphics and data export menu are added
*
- * @param chart
*/
public EChartViewer() {
this(null, true, true, true, true, false);
@@ -328,7 +327,7 @@ public class EChartViewer extends ChartViewer {
if (standardGestures) {
addStandardGestures();
}
- // mouseAdapter.addDebugHandler();
+ mouseAdapter.addDebugHandler();
}
}
@@ -492,6 +491,9 @@ public class EChartViewer extends ChartViewer {
setDomainZoomable(flag);
setRangeZoomable(flag);
isMouseZoomable = flag;
+ // TODO find better solution
+ // clear handler to stop zoom rectangle (hacky solution)
+ getCanvas().clearLiveHandler();
}
public void setRangeZoomable(boolean flag) {
