OGE logoOGE

Virtual Scrolling

The tree flattens only the visible branches (collapsed subtrees cost nothing) and windows the DOM with the same Fenwick-tree virtualizer the grid uses — a 100k-node tree scrolls like a 100-row one.

virtualScroll 100k nodes
O(visible) flatten windowed DOM
Name
Title
Office
Branch 1
Director
İstanbul
Alan Ritchie
Engineer
İzmir
Edsger Lovelace
Engineer
Berlin
Barbara Dijkstra
Engineer
London
Donald Hamilton
Engineer
İstanbul
Margaret Hejlsberg
Engineer
Ankara
Dennis Turing
Engineer
İzmir
Bjarne Knuth
Engineer
Berlin
Anders Stroustrup
Engineer
London
Ada Hopper
Engineer
İstanbul
Grace Liskov
Engineer
Ankara
Alan Ritchie
Engineer
İzmir
Edsger Lovelace
Engineer
Berlin
Barbara Dijkstra
Engineer
London
Donald Hamilton
Engineer
İstanbul
Margaret Hejlsberg
Engineer
Ankara
Dennis Turing
Engineer
İzmir
Bjarne Knuth
Engineer
Berlin

Notes

  • Expanding or collapsing re-flattens only the visible rows, never the full 100k.
  • Collapse all branches and the scrollbar shrinks to the root count instantly.
  • scrollToRow(key) jumps anywhere in the virtual space.