Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit b323f44

Browse files
author
mgrauer
committed
Tracker plot checks for zoom before resetting
1 parent a6c839f commit b323f44

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/tracker/public/js/trend/trend.view.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,9 @@ midas.tracker.renderChartArea = function (curveData, first) {
249249
midas.tracker.bindPlotEvents();
250250

251251
$('a.resetZoomAction').unbind('click').click(function () {
252-
midas.tracker.plot.resetZoom();
252+
if (midas.tracker.plot.plugins.cursor._zoom.isZoomed) {
253+
midas.tracker.plot.resetZoom();
254+
}
253255
});
254256
}
255257
else {

0 commit comments

Comments
 (0)