NeXTs / Clusterize.js

Tiny vanilla JS plugin to display large data sets easily

Home Page:https://clusterize.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Keep scroll position when adding new rows

jjmaceda opened this issue · comments

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!