Yusuf Ibragimov
12/06/2024, 11:48 AMgmz
12/06/2024, 1:26 PMandroidx.navigation
? If yes, are you talking about the weird artifacts you get when you call navigate()
while the animation of the previous navigate()
call is still ongoing? If yes, I'd like to know how to work around that issue.
A faster animation helps, but I'm considering adding an invisible overlay to intercept touches while there are ongoing animations. Not ideal, but with reasonably fast transitions it shouldn't be too much of a problem.Ian Lake
12/06/2024, 4:22 PMIan Lake
12/06/2024, 4:23 PMgmz
12/06/2024, 5:08 PMdropUnless*
would solve the problem, but I'd rahter not rely on it. It is both easy to forget and hard to notice that it is missing.
In particular, my problem is that entering screens are interactive, so if the user manages to press something to navigate to some other screen while a screen is already entering, the animation glitches. I wrote a Modifier
for the NavHost
earlier today that consumes touch events while there are ongoing transitions. It seems to work fine so far, but I barely tested it.Yusuf Ibragimov
12/10/2024, 5:40 AMdropUnlessResumed
block helped me.