From: Dan Vanderkam Date: Tue, 4 Nov 2014 23:51:57 +0000 (-0500) Subject: only apply optimization when stepPlot=false X-Git-Tag: v1.1.0~33^2 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=refs%2Fheads%2Frange-selector-granularity;p=dygraphs.git only apply optimization when stepPlot=false --- 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; }