performMouseWheel

suspend fun <T : Component> SwingNodeInteraction<T>.performMouseWheel(rotation: Int, position: Point? = null): SwingNodeInteraction<T>

Turns the mouse wheel over the matched node by rotation notches - negative away from the user, positive toward them - then settles the composition. position defaults to the middle of the node, in the node's own coordinates.

Return

this interaction, for chaining a further gesture or assertion.

Parameters

rotation

how many notches the wheel turns; the event scrolls by units, so every notch moves the same amount.

position

where the wheel turns, which decides what a UI resolves under the pointer.