Scratch for Java

Stage::whenMouseWheelMoved()

This method is called when the mouse wheel is moved. Overwrite this method to add custom behavior.

Syntax

Java

.whenMouseWheelMoved(steps)

Parameters

Name Data Type Description
steps int the number of steps the mouse wheel has moved. Positive values indicate movement away from the user, while negative values indicate movement towards the user.

Return

void

whenMouseWheelMoved()