InteractionTracker.IsInertiaFromImpulse Property

Definition

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

Boolean

bool

true if the inertia is the result of an impulse; otherwise, false.

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

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.

Applies to

See also