method scrollBy

void scrollBy(int32 pixels);

Argumente

Zurückgegebener Wert

This method scrolls the contents of this box by the given number of pixels.
function onSample()
{
    var container = scene.getBoxById("myContainer");
    if (container)
    {
        container.scrollBy(12 * appUtils.mouseWheelScrollLines);
    }
}