elm-infinite-list-view icon indicating copy to clipboard operation
elm-infinite-list-view copied to clipboard

Don't change all children nodes on scroll

Open MarcoPolo opened this issue 5 years ago • 1 comments

It seems like a scroll event is modifying all the children divs at the same time. This seems inefficient.

For example a small scroll in the VariableItemHeight example causes all child divs to be modified.

What would be involved to change this behavior so it can keep some divs untouched and only modify ones it absolutely needs to? Maybe having bounds that, when crossed, will modify the children divs.

MarcoPolo avatar Mar 28 '19 16:03 MarcoPolo

I think we could optimize the code. As soon as I have some time I'll try to improve it. In the meantime, if you have some optimization ideas, feel free to send a PR ;)

FabienHenon avatar Apr 04 '19 08:04 FabienHenon