Bruno_
01/06/2020, 10:20 PMonScrolledPositionChanged
, was it removed on purpose?Adam Powell
01/06/2020, 10:47 PMScrollerPosition
object that it accepts as a parameter is an @Model
object, so its value
property is observable for the current scroll position@Model
changes outside of compose; it's really raw in the current artifactsmatvei
01/07/2020, 11:25 AMonScrolledPositionChanged = { newValue -> scrollPosition.value = calcMyCustomParallaxDelta(newValue) }
Above will work for dragging, but won't for fling/smoothScrolling. So we decide to remove inconsistency, while leaving ability to observe (just read scrollPosition.value, as Adam suggested) and explore more 🙂Bruno_
01/07/2020, 5:04 PM@Model
, won't it have a massive impact on the performance?
also, I could figure stuff out myself but I can't donwload sources, is it even possible?matvei
01/07/2020, 5:12 PM