aboutsummaryrefslogtreecommitdiffstats
path: root/ui/slider.js
diff options
context:
space:
mode:
authorAblay Keldibek <atomio.ak@gmail.com>2015-03-04 18:23:17 +0600
committerScott González <scott.gonzalez@gmail.com>2015-03-05 13:16:54 -0500
commit60c00cd4ecdab41f44e125efe2679223e9cd5535 (patch)
tree7693a109b4be0e2e0d8e4d89aae7cb1b8e6d12e3 /ui/slider.js
parentaf4c35df9d1cf4c15d57b3789711026360785831 (diff)
downloadjquery-ui-60c00cd4ecdab41f44e125efe2679223e9cd5535.tar.gz
jquery-ui-60c00cd4ecdab41f44e125efe2679223e9cd5535.zip
Slider: Modified to allow value to reach max value with float step
Fixes #11286 Closes gh-1465
Diffstat (limited to 'ui/slider.js')
-rw-r--r--ui/slider.js2
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() ) );
},