We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80ae07c commit f52b146Copy full SHA for f52b146
dist/rzslider.js
@@ -751,12 +751,13 @@
751
*/
752
updateTicksScale: function() {
753
if (!this.options.showTicks) return;
754
-
755
- var positions = '',
756
- ticksCount = Math.round((this.maxValue - this.minValue) / this.step) + 1;
+ var step = this.step;
+ if(angular.isNumber(this.options.showTicks))
+ step = this.options.showTicks;
757
+ var ticksCount = Math.round((this.maxValue - this.minValue) / step) + 1;
758
this.scope.ticks = [];
759
for (var i = 0; i < ticksCount; i++) {
- var value = this.roundStep(this.minValue + i * this.step);
760
+ var value = this.roundStep(this.minValue + i * step);
761
var tick = {
762
selected: this.isTickSelected(value)
763
};
0 commit comments