extras/noUiSlider/nouislider.js
function updateHandlePosition ( handleNumber, to ) {

            // Update locations.
            scope_Locations[handleNumber] = to;

            // Convert the value to the slider stepping/range.
            scope_Values[handleNumber] = scope_Spectrum.fromStepping(to);

            // Called synchronously or on the next animationFrame
            var stateUpdate = function() {
                scope_Handles[handleNumber].style[options.style] = toPct(to);
                updateConnect(handleNumber);
                updateConnect(handleNumber + 1);
            };

            // Set the handle to the new position.
            // Use requestAnimationFrame for efficient painting.
            // No significant effect in Chrome, Edge sees dramatic performace improvements.
            // Option to disable is useful for unit tests, and single-step debugging.
            if ( window.requestAnimationFrame && options.useRequestAnimationFrame ) {
                window.requestAnimationFrame(stateUpdate);
            } else {
                stateUpdate();
            }
        }
function updateHandlePosition ( handleNumber, to ) {

            // Update locations.
            scope_Locations[handleNumber] = to;

            // Convert the value to the slider stepping/range.
            scope_Values[handleNumber] = scope_Spectrum.fromStepping(to);

            // Called synchronously or on the next animationFrame
            var stateUpdate = function() {
                scope_Handles[handleNumber].style[options.style] = toPct(to);
                updateConnect(handleNumber);
                updateConnect(handleNumber + 1);
            };

            // Set the handle to the new position.
            // Use requestAnimationFrame for efficient painting.
            // No significant effect in Chrome, Edge sees dramatic performace improvements.
            // Option to disable is useful for unit tests, and single-step debugging.
            if ( window.requestAnimationFrame && options.useRequestAnimationFrame ) {
                window.requestAnimationFrame(stateUpdate);
            } else {
                stateUpdate();
            }
        }
function updateHandlePosition ( handleNumber , to ) { // Update locations. scope_Locations [ handleNumber ] = to ; // Convert the value to the slider stepping/range. scope_Values [ handleNumber ] = scope_Spectrum . fromStepping ( to ) ; // Called synchronously or on the next animationFrame var stateUpdate = function ( ) { scope_Handles [ handleNumber ] . style [ options . style ] = toPct ( to ) ; updateConnect ( handleNumber ) ; updateConnect ( handleNumber + 1 ) ; } ; // Set the handle to the new position. // Use requestAnimationFrame for efficient painting. // No significant effect in Chrome, Edge sees dramatic performace improvements. // Option to disable is useful for unit tests, and single-step debugging. if ( window . requestAnimationFrame && options . useRequestAnimationFrame ) { window . requestAnimationFrame ( stateUpdate ) ; } else { stateUpdate ( ) ; } }
Updates scope_Locations and scope_Values, updates visual state
Updates scope_Locations and scope_Values updates visual state