elm-infinite-list-view
elm-infinite-list-view copied to clipboard
Don't change all children nodes on scroll
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.
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 ;)