diff options
Diffstat (limited to 'ui/slider.js')
-rw-r--r-- | ui/slider.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/slider.js b/ui/slider.js index 4af7dc34f..fceb367f3 100644 --- a/ui/slider.js +++ b/ui/slider.js @@ -558,7 +558,7 @@ return $.widget( "ui.slider", $.ui.mouse, { var max = this.options.max, min = this._valueMin(), step = this.options.step, - aboveMin = Math.floor( ( max - min ) / step ) * step; + aboveMin = Math.floor( ( +( max - min ).toFixed( this._precision() ) ) / step ) * step; max = aboveMin + min; this.max = parseFloat( max.toFixed( this._precision() ) ); }, |