SpatialSpringParams

@Immutable
class SpatialSpringParams(val naturalFreq: Float = 11.0f, val dampingRatio: Float = 0.85f, val extIntensity: Float = 0.1f, val velocityAdjustment: Float = 1.0f)

Configuration parameters for the Spatial Spring Fling behavior.

Constructors

Link copied to clipboard
constructor(naturalFreq: Float = 11.0f, dampingRatio: Float = 0.85f, extIntensity: Float = 0.1f, velocityAdjustment: Float = 1.0f)

Properties

Link copied to clipboard
val dampingRatio: Float

Spring damping ratio. Values below 1.0 create a bouncy under-damped spring, while values at or above 1.0 reduce or remove bounce.

Link copied to clipboard
val extIntensity: Float

Overscroll extension intensity applied to unconsumed drag deltas at the edge. Higher values make overscroll easier to pull and more directly follow the pointer.

Link copied to clipboard
val naturalFreq: Float

Frequency-like value used to derive spring stiffness. Higher values make the spring return to rest faster and feel stiffer.

Link copied to clipboard

Multiplier applied to the remaining fling velocity before starting the spring-back animation. Higher values increase the visual impact after hitting an edge.

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