Home Forums Report Bugs Issue With Panning To Far Right Of Charts Reply To: Issue With Panning To Far Right Of Charts

#26004

In case anyone else is having this issue, you can fix it by making a few changes within their p.prototype.validateRegion function. Replace the corresponding block with the following:

if (isFinite(q.dataInfo.minDiff)) {
    B = q.getApparentDifference(n, f, null, !0);
    if (!(g || !(this.panEnabled && q.scaleBreaks && q.scaleBreaks._appliedBreaks.length) && (q.logarithmic && B < Math.pow(q.dataInfo.minDiff, 3) || !q.logarithmic && B < 3 * Math.abs(q.dataInfo.minDiff)) || (this.plotArea.x1 <= q.convertValueToPixel(q.minimum) && n < q.minimum) || (this.plotArea.x2 >= q.convertValueToPixel(q.maximum) && f > q.maximum))) {
        w.push(q);
        s.push({
            val1: n < q.minimum ? q.minimum : n,
            //val1: this.plotArea.x1 <= q.convertValueToPixel(q.minimum) && n < q.minimum ? q.minimum : n,  // enable for rubber-band scrolling effect
            val2: f > q.maximum ? q.maximum : f
            //val2: this.plotArea.x2 >= q.convertValueToPixel(q.maximum) && f > q.maximum ? q.maximum : f  // enable for rubber-band scrolling effect
        });
        l = !0;
    } else if (!e) {
        l = !1;
        break;
    }
}

Replace the commented val1 and val2 with the uncommented ones for a rubber-band scrolling effect.