NeXTs / Clusterize.js

Tiny vanilla JS plugin to display large data sets easily
https://clusterize.js.org
MIT License
7.22k stars 414 forks source link

Keep scroll position when adding new rows #171

Open jjmaceda opened 5 years ago

jjmaceda commented 5 years ago

Hi, I wonder if is possible, cause at least is not working for me, to keep the scroll position when adding new rows to the data?

Basically I'm adding and removing elements from the array am using to update clusterized, so when

_orders.unshift('<li>new data</li>');
clusterized.update(_orders);

if am let say in the middle of the list, the list gets pushed down because of the new element, the problem is that in my use case I can be interacting with a row at that moment and the row gets pushed down

thanks for any help!