From 69c9b9f26e176fa1893dba778a5db4e0277ad19d Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Tue, 4 Nov 2014 18:51:57 -0500 Subject: [PATCH] only apply optimization when stepPlot=false --- plugins/range-selector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/range-selector.js b/plugins/range-selector.js index d8a3c7a..8e74ad9 100644 --- a/plugins/range-selector.js +++ b/plugins/range-selector.js @@ -597,7 +597,7 @@ rangeSelector.prototype.drawMiniPlot_ = function() { // Skip points that don't change the x-value. Overly fine-grained points // can cause major slowdowns with the ctx.fill() call below. - if (prevX !== null && Math.round(x) == Math.round(prevX)) { + if (!stepPlot && prevX !== null && Math.round(x) == Math.round(prevX)) { continue; } -- 2.7.4