[ type ] MouseMotionEvent

Description:

Mouse motion event received by the onMouseMotion() handler callback.

Type: Object

Properties:

Name Type Description

target

object

The component that triggered the event.

type

string

One of move, drag.

[button]

number

Button number. One of MouseButton enum values. Present when applicable.

[modifiers]

number

Keyboard modifiers (bitmask or flags).

x

number

Mouse X position relative to the component.

y

number

Mouse Y position relative to the component.

screenX

number

Mouse X position relative to the screen.

screenY

number

Mouse Y position relative to the screen.

Also See: