interface MouseHitEvent

Event generated while using a mouse over a hit region.

Properties
altKey, button, clientX, clientY, ctrlKey, metaKey, shiftKey, x, y
Extended by
WheelHitEvent

Properties

altKey

Indicates whether the alt/option key was pressed.

Type:
boolean
button

Indicates which button was pressed on the mouse.

  • 0: Main button (left)
  • 1: Auxiliary button (wheel, middle)
  • 2: Secondary button (right)
  • 3: Fourth button (browser-back)
  • 4: Fifth button (browser-forward)
Type:
number
clientX

X-axis coordinate of the mouse pointer (relative to the client area).

Type:
number
clientY

Y-axis coordinate of the mouse pointer (relative to the client area).

Type:
number
ctrlKey

Indicates whether the ctrl key was pressed.

Type:
boolean
metaKey

Indicates whether the meta key was pressed.

Type:
boolean
shiftKey

Indicates whether the shift key was pressed.

Type:
boolean
x

X-axis coordinate relative to the Canvas.

Type:
number
y

Y-axis coordinate relative to the Canvas.

Type:
number