# InteractionTrackerInertiaModifier

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/rendering/composition/interactions/enum-interactiontrackerinertiamodifier/

**enum** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
enum InteractionTrackerInertiaModifier
```

A modifier of the inertia of one axis of an interaction tracker
(`InteractionTrackerInertiaModifier`): what
`configure_position_x_inertia_modifiers`
and its siblings take.

When the tracker enters inertia it evaluates the conditions of the
modifiers of an axis in order; the first modifier whose condition is
`true` applies to the axis for the whole inertia.

Deviation (winui-composition.md): WinUI also has
`InteractionTrackerInertiaNaturalMotion`, which runs a
`ScalarNaturalMotionAnimation`; the natural motion animations are not
ported yet, so that subclass is missing.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/interactions/interaction_tracker_inertia_modifier.rs#L23)

## Members

- [`RestingValue`](#variant-restingvalue)
- [`Motion`](#variant-motion)
- [`condition`](#function-condition)

<a id="variant-restingvalue"></a>

### RestingValue

```rust
RestingValue(std::rc::Rc<InteractionTrackerInertiaRestingValue>)
```

`InteractionTrackerInertiaRestingValue`: replaces the resting value.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/interactions/interaction_tracker_inertia_modifier.rs#L25)

<a id="variant-motion"></a>

### Motion

```rust
Motion(std::rc::Rc<InteractionTrackerInertiaMotion>)
```

`InteractionTrackerInertiaMotion`: replaces the motion.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/interactions/interaction_tracker_inertia_modifier.rs#L27)

<a id="function-condition"></a>

### condition

```rust
fn condition(self: &Self) -> Option<Rc<ExpressionAnimation>>
```

The condition of the modifier.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/interactions/interaction_tracker_inertia_modifier.rs#L32)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `From<Rc<InteractionTrackerInertiaRestingValue>>`
- `From<Rc<InteractionTrackerInertiaMotion>>`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
