-api-id | -api-type |
---|---|
T:Windows.UI.Composition.Interactions.InteractionTrackerInertiaModifier |
winrt class |
Base class for inertia modifiers.
The InteractionTrackerInertiaModifier represents the base class for inertia modifiers. inertia modifiers can be thought of as ways to change the behavior for where and how InteractionTracker reaches its final resting position. Changing this behavior of InteractionTracker is commonly used when more custom motion experiences are needed such as snap points. There are two variations to how you can modify the behavior of InteractionTracker using inertia modifiers: modify its final resting position after interaction with the InteractionTrackerInertiaRestingValue class or define the equation used to calculate the actual motion and final resting position during Inertia with the InteractionTrackerInertiaMotion class. These modifiers are applied to either X Position, Y Position or Scale of InteractionTracker.
It is important to note that inertia modifiers only get evaluated when InteractionTracker enters the Inertia state. Once the InteractionTracker has entered inertia, all the inertia modifiers are evaluated and if one is selected, it will be used to calculate the motion until InteractionTracker ’s velocity becomes 0.