mwg API
    Preparing search index...

    Interface ScrollBoxOptions

    interface ScrollBoxOptions {
        autoHeight?: boolean;
        contentHeight?: number;
        height: number;
        keyboard?: boolean;
        lineHeight?: number;
        offset?: number;
        touch?: boolean;
        width: number;
    }
    Index
    autoHeight?: boolean

    a viewport as tall as the content, up to height

    contentHeight?: number

    how tall the content is; set it again with setContentHeight as the content changes

    height: number

    the viewport's height, or its largest height when autoHeight is on

    keyboard?: boolean

    handleKey scrolls by line, page and to the ends

    lineHeight?: number

    how far an arrow key scrolls; 24 when omitted

    offset?: number
    touch?: boolean

    dragging the content scrolls it and it coasts on release (update(dt) drives the coasting)

    width: number