setScrollFocus

fun Actor.setScrollFocus(focus: Boolean = true)

Modifies current stage scroll focus if this actor is currently shown.

Parameters

focus

if true, will set current scroll focus to this actor. If false and the actor is currently focused, will clear scroll focus of actor's stage.