A callback type used in custom and default inertia function implementations.
public delegate LeadPoint CalculateInertiaCallback(
InertiaParams inertiaParams
)
public:
delegate LeadPoint CalculateInertiaCallback(
InertiaParams^ inertiaParams
)
inertiaParams
The InertiaParams object for this calculation.
A LeadPointD indicating what the offset should be from InertiaParams.Target's current scroll offset.
To provide your own custom inertia scroll callback, provide a CalculateInertiaCallback function to ControlInertiaScrollOptions.CalculateInertia. The function can make use of InertiaParams to create their own deceleration for the inertia scroll. The return LeadPointD should move away from 0 as time passes; it will be added to the scroll offset of the InertiaParams.Target. InertiaParams.Stop must be used to end the inertia scroll. Failure to set InertiaParams.Stop to true may cause the inertia scroll to run indefinitely.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document