Options
All
  • Public
  • Public/Protected
  • All
Menu

Native friendly interface for MouseEvent Object

Hierarchy

Index

Properties

altKey: boolean

Status of Alt key being pressed

button: number

Value of single mouse button pressed

buttons: number

Value of all mouse buttons pressed

clientX: number

Current X coordinate

clientY: number

Current Y coordinate

ctrlKey: boolean

Status of Ctrl key being pressed

currentTarget?: any

Current target for an event

detail?: number

Provides current click count

Subset of possible PointerInput values for events, excluding ones that CANNOT be in events organically

metaKey: boolean

Status of Meta key (eg. Windows key) being pressed

movementX: number

Delta of movement on X axis

movementY: number

Delta of movement on Y axis

mozMovementX?: number

Delta of movement on X axis

deprecated

Use 'movementX' instead

mozMovementY?: number

Delta of movement on Y axis

deprecated

Use 'movementY' instead

msMovementX?: number

Delta of movement on X axis

deprecated

Use 'movementX' instead

msMovementY?: number

Delta of movement on Y axis

deprecated

Use 'movementY' instead

offsetX: number

Current coordinate of X within container

offsetY: number

Current coordinate of Y within container

pageX: number

Horizontal coordinate of event

pageY: number

Vertical coordinate of event

shiftKey: boolean

Status of Shift key being pressed

srcElement?: any

Alias for target

deprecated

Use target instead

target: any

Reference to object where object was dispatched

type: string

Type of event

webkitMovementX?: number

Delta of movement on X axis

deprecated

Use 'movementX' instead

webkitMovementY?: number

Delta of movement on Y axis

deprecated

Use 'movementY' instead

x: number

Alias of clientX

y: number

Alias of clientY

Methods

  • preventDefault(): void
  • Tells user agent what to do when not explicitly handled

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited constructor
  • Static method

Settings

Theme