SpatialFlingParams

@Immutable
class SpatialFlingParams(val friction: Float = 0.04f, val flingSensitivity: Float = 1.0f, val absVelocityThreshold: Float = 0.0f)

Configuration parameters for the Spatial Fling behavior.

Constructors

Link copied to clipboard
constructor(friction: Float = 0.04f, flingSensitivity: Float = 1.0f, absVelocityThreshold: Float = 0.0f)

Properties

Link copied to clipboard

Minimum absolute remaining velocity required to treat a boundary hit as an impact and start a spring-back animation.

Link copied to clipboard
val flingSensitivity: Float

Multiplier applied to the initial fling velocity before decay starts. Values above 1.0 make fling motion more sensitive, while values below 1.0 make it gentler.

Link copied to clipboard
val friction: Float

Friction value used by the custom exponential decay. Higher values slow down fling motion faster and shorten the inertial scroll distance.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String