virtualizer-adapter
Adapter utilities for the virtualizer crate (workspace sibling).
This crate is intentionally framework-neutral and does not hold any UI objects. It provides small, common building blocks for adapters:
- Scroll anchoring for prepend workflows (chat/timelines) without visual jumps
- Tween helpers and a simple controller pattern for smooth scrolling (adapter-driven)
This crate is part of the virtualizer workspace repository.
Usage
use ;
let mut c = new;
c.virtualizer_mut.set_viewport_size;
// Start an adapter-driven tween to an index.
c.start_tween_to_index;
// In your frame loop:
let _ = c.tick;
Examples
- Prepend anchoring:
cargo run -p virtualizer-adapter --example anchor_prepend - Tween controller:
cargo run -p virtualizer-adapter --example controller_tween