InteractionTracker.IsInertiaFromImpulse Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value that indicates whether the inertia is the result of an impulse.
public:
property bool IsInertiaFromImpulse { bool get(); };
bool IsInertiaFromImpulse();
public bool IsInertiaFromImpulse { get; }
var boolean = interactionTracker.isInertiaFromImpulse;
Public ReadOnly Property IsInertiaFromImpulse As Boolean
Property Value
bool
true if the inertia is the result of an impulse; otherwise, false.
Remarks
Inertia from an impulse includes both calls to TryUpdatePositionWithInitialVelocity, and auto-redirected pointer wheel input. This property evaluates to true within an expression when the input originates from a discrete source such as a pointer wheel. The property value should be used only when evaluating the conditions of an inertia modifier.
You can reference this property in the expression used to select an inertia modifier, which allows you to determine whether the inertia is being entered as a result of pointer wheel input. You can then provide different inertia modifiers for these types of interactions than you provide for continuous manipulations, like touch and touchpad.
For example, when scrolling a page of content, a small touch delta can result in the content getting snapped back to its original starting value. However, when scrolling with the pointer wheel, each tick of the wheel should move the content a full page per tick. You can define snap points (inertia modifiers) for use with the pointer wheel that will snap scrolling to a desired endpoint, but specify different criteria for the snap points that are used with touch or direct manipulation.