ScrollSequence(Interactive, Vector, Int32, Boolean, Nullable) Method

Definition

Assembly HeadlessTestingFramework.dll

Simulates a complete scroll gesture sequence with optional inertia.

public void ScrollSequence(Interactive target, Vector totalDelta, int steps = 10, bool withInertia = false, Vector? inertiaVelocity = default(Vector? ))

Parameters

target
Avalonia.Interactivity.Interactive

The target control to receive the event.

totalDelta
Avalonia.Vector

Total scroll distance.

steps
Int32

Number of intermediate steps (must be greater than 0).

withInertia
Boolean

Whether to include inertia at the end.

inertiaVelocity
Nullable<Vector>

Velocity for inertia (if enabled).