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
At the moment
InteractionModeltakes a lambda parameter that returns an instance of aMotionContoller. This approach is not convenient for the clients when they need to observeMotionContoller. For instance, they may need to observeSpotlightSliderscroll position. Additionally, with every newMotionContollerinstance, ui cache can not be reused. It will result in creating new instances ofMutableUiStatewhich will result in flickering