Viewport.scrollToFocus

Set scrollToFocus property.

  1. bool scrollToFocus [@property getter]
  2. bool scrollToFocus [@property setter]
    class Viewport
    @property
    void
    scrollToFocus
    (
    bool propval
    )

Parameters

propval bool

Whether to scroll when the focus changes.

Before 4.6.2, this property was mistakenly defaulting to FALSE, so if your code needs to work with older versions, consider setting it explicitly to TRUE.