Skip to main content

Scroll Control

scroll-to — App → stdui

Programmatically scrolls a pane to a given vertical position. The scroll is applied on the next rendered frame.

{ "action": "scroll-to", "data": { "pane": "history", "position": "bottom" } }

Fields:

FieldTypeDescription
panestring, requiredID of the target pane
positionnumber or stringVertical scroll target. "bottom" scrolls to the end of content; a number is an absolute pixel offset from the top. Omitting position (or 0) scrolls to the top

Examples:

{ "action": "scroll-to", "data": { "pane": "chat",  "position": "bottom" } }
{ "action": "scroll-to", "data": { "pane": "log", "position": 0 } }
{ "action": "scroll-to", "data": { "pane": "list", "position": 320 } }