DampedTransitioner
Carousel Transitioner that provides smooth, physics-based deceleration at the end of a Carousel's manual movement.
Parameters
used to track current time
used to manage animation
indicating how quickly stops should decelerate to 0 velocity
indicating how much critical damping should be applied during stopping
the speed below which the transition is considered done
the threshold from the target that is considered close enough to stop
use to average velocity across
See also
Constructors
Functions
Notified whenever carousel has ended a manual move. This is where a transition animation would take place to smoothly move to the desired end item.
Notified whenever carousel has moves during a manual move (called after moveStarted). Transitioners can use this to keep track of things like movement velocity if they wish to provide smooth animation when moveEnded is called.