Cheers. I’m having issues with the newly introduce...
# compose
c
Cheers. I’m having issues with the newly introduced
onFirstVisible
modifier and hoping to get some input. When displaying `Row`s with
horizontalScroll
within a
Column
with
verticalScroll
, vertical scrolls are never considered for triggering the
onFirstVisble
callbacks. Horizontal scrolling still invokes the callbacks when applicable. This only happens if a
Row
is initially considered to be in the viewport (e.g. the
Row
is the first item in the
Column
), otherwise, both scrolling directions work properly with
onFirstVisible
. Unfortunately I’ve tried to isolate this behavior in a demo project but wasn’t able to. Therefore I’m asking if anyone has an idea of what the underlying issue could be.
a
hey! I am from Compose team and I am working on some bug fixes for this modifier right now. we did fix some of known issues already, would you be able to test if you can still reproduce this issue with 1.10.0-alpha03? if yes, then there are a few more fixes we already have after this alpha, so I might ask you to try to reproduce it on a snapshot version of compose
🔥 2
c
Hey! I just tried it with 1.10.0-alpha03 and the behavior is the same. Would be great if you could provide me with the snapshot version. In the meantime, I will try to provide a minimal reproducible scenario.
a
thanks for verifying. the next candidate was merged in the build 14093950. you can read more on how to use snapshots here https://androidx.dev/
👍 1
c
Hey! Unfortunately the behavior remained unchanged with the snapshot. I was able to reproduce it in a demo project, I created an issue and attached a sample project/ sample code: https://issuetracker.google.com/issues/445356774
a
thanks, I will look into that
c
Thanks for fixing this so fast, greatly appreciated!