Skip to content

Provide an instance of MotionContoller to InteractionModel instead of a lambda #481

@KovalevAndrey

Description

@KovalevAndrey

At the moment InteractionModel takes a lambda parameter that returns an instance of a MotionContoller. This approach is not convenient for the clients when they need to observe MotionContoller. For instance, they may need to observe SpotlightSlider scroll position. Additionally, with every new MotionContoller instance, ui cache can not be reused. It will result in creating new instances of MutableUiState which will result in flickering

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions