Window.onMouseWheel

Function/Meaning

[Windows *] Mouse wheel rotated

Type
WindowclassEvent
Syntax
onMouseWheel(shift, delta, x, y)
Arguments
shift

This is the state of shift keys and mouse buttons that were pressed at the same time when the mouse was moving.
It is a combination of the following values by bit OR.

  • ssAlt : The ALT key was pressed
  • ssShift : The SHIFT key was pressed
  • ssCtrl : CTRL key was pressed
  • ssLeft : The left mouse button was pressed
  • ssMiddle : The middle mouse button was pressed
  • ssRight : The right mouse button was pressed
delta

The angle of rotation of the wheel.
If it is turned upward (the direction opposite to the user), it will be a positive value, and if it is turned downward (the direction toward the user), it will be a negative value.
The minimum amount is typically 120.

x

The x-coordinate (in client coordinates) value of where the wheel was rotated.

y

The y-coordinate (in client coordinates) value of where the wheel was rotated.

Return value
None (void)
Explanation

Occurs when the mouse wheel rotates.