defaultDuration Property

Summary

The time in milliseconds for the default inertia scroll to last.

Syntax
TypeScript
JavaScript
Object.defineProperty(ControlInertiaScrollOptions.prototype, 'defaultDuration', 
	get: function(), 
	set: function(value) 
) 
defaultDuration: number; 

Property Value

A number indicating the duration in milliseconds. The default value is 2500.

Remarks

DefaultCalculateInertia 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. When the time elapsed (since InertiaParams.ReasonTimestamp) is greater than or equal to DefaultDuration, the inertia scroll will be complete.

Requirements

Target Platforms

Help Version 22.0.2023.2.4
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

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