src/aria/touch/widgets/DoubleSlider.js
function () {
            var first = Math.max(0, Math.min(this.value[0], this.value[1], 1));
            var second = Math.min(1, Math.max(this.value[0], this.value[1], 0));
            this._savedX1 = Math.floor(first * this._railWidth);
            this._savedX2 = Math.ceil(second * this._railWidth + this._firstWidth);
        }
function () {
            var first = Math.max(0, Math.min(this.value[0], this.value[1], 1));
            var second = Math.min(1, Math.max(this.value[0], this.value[1], 0));
            this._savedX1 = Math.floor(first * this._railWidth);
            this._savedX2 = Math.ceil(second * this._railWidth + this._firstWidth);
        }
function ( ) { var first = Math . max ( 0 , Math . min ( this . value [ 0 ] , this . value [ 1 ] , 1 ) ) ; var second = Math . min ( 1 , Math . max ( this . value [ 0 ] , this . value [ 1 ] , 0 ) ) ; this . _savedX1 = Math . floor ( first * this . _railWidth ) ; this . _savedX2 = Math . ceil ( second * this . _railWidth + this . _firstWidth ) ; }
Set the left position of the two thumbs without knowing if they are correct. The first thumb is aligned on
the left, while the second on the right.
Set the left position of the two thumbs without knowing if they are correct . The first thumb is aligned on the left while the second on the right .