|
|
|
|
|
by jancsika
3516 days ago
|
|
> We must pay attention to also keep technical qualities that many of our
users rely on. An obvious one is that the new implementation must be
able to quickly scroll through a list of up to 100000 messages. Does any cross-platform GUI toolkit have a widget that can handle this with sane defaults? |
|
The problem browser based apps run into is rendering the entire list into the DOM and thus the browser has to lay out the whole thing in order to compute scroll bars and scroll positions.
You can work around this using requestAnimationFrame, large empty padding divs, and inspecting the scroll position to create DOM elements for only things that you compute are visible. At my last job I implemented a web based table that could do 60fps scrolling on 100,000 items that were all dynamically updating using js_of_ocaml and https://github.com/janestreet/incr_dom.