Interface IChangeableProps

Changeable properties for a component. These properties may change during the component's lifecycle, such as in response to window resizing or user actions. This interface extends IChangeableProps, inheriting the mutable properties defined for modules.

Hierarchy

Properties

__fixHelperChangeableProps?: any
direction?: "horizontal" | "vertical"

Defines the main scrolling direction. Can be either horizontal or vertical.

Default

'vertical'
hasStopPropagation?: boolean

If true, stops propagation of the scroll event to parent elements.

Default

true
hasWheel?: boolean

If true, enables scrolling via mouse wheel.

Default

true
isEnabled?: boolean

If true, scrolling is enabled.

Default

true
isFpsNormalized?: boolean

Normalizes the scroll speed across different screens by accounting for varying FPS rates.

Default

true
isInversedHandlerDirection?: boolean

Inverts the scroll direction. Useful for reversed scrolling behaviors.

Default

false
lerp?: number

Linear interpolation factor for smooth scrolling. Scroll elements can override this value using the customScrollLerp property or the "data-custom-scroll-lerp" attribute.

Default

0.1
lerpApproximation?: number

Approximation factor for interpolation, used to prevent animation from getting too slow at very small differences between current and target values.

Default

0.1
shouldAutoStop?: boolean

Automatically stops the animation frame when the target and current scroll values are equal. Improves performance by preventing unnecessary renders.

Default

true
wheelSpeed?: number

Defines the scroll speed multiplier for the mouse wheel.

Default

1