src/aria/touch/widgets/DoubleSlider.js
function () {
            var left = this._savedX1, right = this._savedX2;

            var first = Math.max(left / this._railWidth, 0);
            var second = Math.min((right - this._firstWidth) / this._railWidth, 1);

            if (this.value[0] !== first || this.value[1] !== second) {
                this.value = [first, second];
                var binding = this._binding;
                ariaUtilsJson.setValue(binding.inside, binding.to, this.value);
            } else {
                // Trying to go somewhere far, don't update value, but only the display
                this._notifyDataChange();
            }
            return;
        }
function () {
            var left = this._savedX1, right = this._savedX2;

            var first = Math.max(left / this._railWidth, 0);
            var second = Math.min((right - this._firstWidth) / this._railWidth, 1);

            if (this.value[0] !== first || this.value[1] !== second) {
                this.value = [first, second];
                var binding = this._binding;
                ariaUtilsJson.setValue(binding.inside, binding.to, this.value);
            } else {
                // Trying to go somewhere far, don't update value, but only the display
                this._notifyDataChange();
            }
            return;
        }
function ( ) { var left = this . _savedX1 , right = this . _savedX2 ; var first = Math . max ( left / this . _railWidth , 0 ) ; var second = Math . min ( ( right - this . _firstWidth ) / this . _railWidth , 1 ) ; if ( this . value [ 0 ] !== first || this . value [ 1 ] !== second ) { this . value = [ first , second ] ; var binding = this . _binding ; ariaUtilsJson . setValue ( binding . inside , binding . to , this . value ) ; } else { // Trying to go somewhere far, don't update value, but only the display this . _notifyDataChange ( ) ; } return ; }
Set the value of the slider in the data model given the left position of the thumbs.
@protected
Set the value of the slider in the data model given the left position of the thumbs .