Why does scalinglazycolumn constantly refresh the item when the page scrolls?
Thanks!
j
John Nichol
04/08/2022, 12:02 PM
I am not sure exactly what you are seeing, can you give me more information/an example? At a high level as the list scrolls the ScalingLazyColumn will be working out the new scaling factors and then redrawing with the new values. It shouldn't be recomposing.
l
Lebron James
04/11/2022, 3:01 AM
This is an example. The code is shown above. When I stopped scrolling, I found that I used log E ("Donghe", "log a tag") print the log, which will be called continuously.
j
John Nichol
04/11/2022, 11:26 AM
What version are you using - I just tried to reproduce with the following code against alpha16, 18 and 20 and it is working exactly as I would expect and only logging when new items are being composed and stops when I stop scrolling.