#15262: Correct logic for cover tests.

This commit is contained in:
Tatiana Kiseleva 2020-12-18 07:05:55 +00:00
parent 03ccd34361
commit 204fcb1ce5

View File

@ -549,7 +549,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.round( ( max - min ) / step ) * step;
max = aboveMin + min;
// Round the max before compare with max from option.