defaultCalculateInertia Property

Summary

The default inertia calculation function.

Syntax
TypeScript
JavaScript
Object.defineProperty(ControlInertiaScrollOptions.prototype, 'defaultCalculateInertia', 
	get: function() 
) 
static defaultCalculateInertia: CalculateInertiaCallback; // read-only 

Property Value

A CalculateInertiaCallback that uses a cubic Bézier function to calculate the inertia scroll offsets.

Remarks

DefaultCalculateInertia is the default cubic Bézier inertia scroll function. It makes use of the values of DefaultBezierPoint1, DefaultBezierPoint2, DefaultDuration, and DefaultPower to return the new inertia scroll offset.

The Bézier function is defined by the four points (0,0), DefaultBezierPoint1, DefaultBezierPoint2, (1,1) and defines the percent of total distance for the inertia animation. This animation is modeled roughly after the iOS momentum scroll animation.

A custom CalculateInertiaCallback can be set to CalculateInertia. If CalculateInertia is null, DefaultCalculateInertia is used.

Requirements
Target Platforms
Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.