Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ui/jquery.ui.slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -585,10 +585,10 @@ $.widget( "ui.slider", $.ui.mouse, {

// returns the step-aligned value that val is closest to, between (inclusive) min and max
_trimAlignValue: function( val ) {
if ( val < this._valueMin() ) {
if ( val <= this._valueMin() ) {
return this._valueMin();
}
if ( val > this._valueMax() ) {
if ( val >= this._valueMax() ) {
return this._valueMax();
}
var step = ( this.options.step > 0 ) ? this.options.step : 1,
Expand Down