onMouseClicked

open fun onMouseClicked(actor: Actor, event: MouseEvent): Boolean

A mouse-click has occurred. touchTest has already returned true, so you can be sure that the click is near the Actor. Therefore, for a simple button, MouseEvent.local will be ignored. But for a slider we want to know how far along the slider; in which case we will only be concerned with the x component for a horizontal slider.

Return

true if the click has been handled; no other MouseBehaviour will receive the click event.