in lib/@uncharted.software/stories-facets/src/components/facet/facetHistogramFilter.js [232:268]
FacetHistogramFilter.prototype._initializePagination = function () {
this._pageLeft.click(function() {
var from = this._barRange.from;
var to = this._barRange.to;
var maxFrom = this._maxBarRange.from;
if (from > maxFrom) {
var offset = to - from + 1;
if (from - offset < maxFrom) {
offset = from - maxFrom;
}
this.setFilterBarRange({
from: from - offset,
to: to - offset
}, true);
}
}.bind(this));
this._pageRight.click(function() {
var from = this._barRange.from;
var to = this._barRange.to;
var maxTo = this._maxBarRange.to;
if (to < maxTo) {
var offset = to - from + 1;
if (to + offset > maxTo) {
offset = maxTo - to;
}
this.setFilterBarRange({
from: from + offset,
to: to + offset
}, true);
}
}.bind(this));
};