Raxol.Playground.Demos.ScrollAnchorDemo (Raxol v2.6.1)

View Source

Playground demo: Viewport's overflow_anchor follow-tail scrolling.

A simulated log stream grows on a timer. overflow_anchor: :auto pins the viewport to the newest line whenever you're already at the bottom (a tail -f), and releases the pin the instant you scroll up to read history -- new lines no longer yank the view. :none freezes scroll position outright, regardless of how much new content arrives.

Summary

Functions

subscribe_interval(interval, msg)

subscribe_to_events(events)