__startDeceleration (timeStamp) {
        var self = this

        self.__minDecelerationScrollTop = self.__minScrollTop
        self.__maxDecelerationScrollTop = self.__maxScrollTop

        // Wrap class method
        var step = function (percent, now, render) {
            self.__stepThroughDeceleration(render)
        }

        // How much velocity is required to keep the deceleration running
        var minVelocityToKeepDecelerating = 0.5

        // Detect whether it's still worth to continue animating steps
        // If we are already slow enough to not being user perceivable anymore, we stop the whole process here.
        var verify = function () {
            var shouldContinue = Math.abs(self.__decelerationVelocityY) >= minVelocityToKeepDecelerating
            if (!shouldContinue) {
                self.__didDecelerationComplete = true
            }
            return shouldContinue
        }

        var completed = function (renderedFramesPerSecond, animationId, wasFinished) {
            self.__isDecelerating = false
            if (self.__scrollTop <= self.__minScrollTop || self.__scrollTop >= self.__maxScrollTop) {
                self.scrollTo(self.__scrollTop)
                return
            }
            if (self.__didDecelerationComplete) {
                self.__scrollingComplete()
            }
        }

        // Start animation and switch on flag
        self.__isDecelerating = Animate.start(step, verify, completed)
    }
// Called when a touch sequence end and the speed of the finger was high enough to switch into deceleration mode.
Called when a touch sequence end and the speed of the finger was high enough to switch into deceleration mode.
Called when a touch sequence end and the speed of the finger was high enough to switch into deceleration mode .
__startDeceleration (timeStamp) {
        var self = this
        self.__minDecelerationScrollTop = self.__minScrollTop
        self.__maxDecelerationScrollTop = self.__maxScrollTop
        var step = function (percent, now, render) {
            self.__stepThroughDeceleration(render)
        }
        var minVelocityToKeepDecelerating = 0.5
        var verify = function () {
            var shouldContinue = Math.abs(self.__decelerationVelocityY) >= minVelocityToKeepDecelerating
            if (!shouldContinue) {
                self.__didDecelerationComplete = true
            }
            return shouldContinue
        }
        var completed = function (renderedFramesPerSecond, animationId, wasFinished) {
            self.__isDecelerating = false
            if (self.__scrollTop <= self.__minScrollTop || self.__scrollTop >= self.__maxScrollTop) {
                self.scrollTo(self.__scrollTop)
                return
            }
            if (self.__didDecelerationComplete) {
                self.__scrollingComplete()
            }
        }
        self.__isDecelerating = Animate.start(step, verify, completed)
    }
__startDeceleration ( timeStamp ) { var self = this self . __minDecelerationScrollTop = self . __minScrollTop self . __maxDecelerationScrollTop = self . __maxScrollTop var step = function ( percent , now , render ) { self . __stepThroughDeceleration ( render ) } var minVelocityToKeepDecelerating = 0.5 var verify = function ( ) { var shouldContinue = Math . abs ( self . __decelerationVelocityY ) >= minVelocityToKeepDecelerating if ( ! shouldContinue ) { self . __didDecelerationComplete = true } return shouldContinue } var completed = function ( renderedFramesPerSecond , animationId , wasFinished ) { self . __isDecelerating = false if ( self . __scrollTop <= self . __minScrollTop || self . __scrollTop >= self . __maxScrollTop ) { self . scrollTo ( self . __scrollTop ) return } if ( self . __didDecelerationComplete ) { self . __scrollingComplete ( ) } } self . __isDecelerating = Animate . start ( step , verify , completed ) }
Called when a touch sequence end and the speed of the finger was high enough to switch into deceleration mode.
Called when a touch sequence end and the speed of the finger was high enough to switch into deceleration mode .
// Wrap class method // How much velocity is required to keep the deceleration running // Detect whether it's still worth to continue animating steps // If we are already slow enough to not being user perceivable anymore, we stop the whole process here. // Start animation and switch on flag