Interface MouseEvent<T, E>

currentTarget - a reference to the element on which the event listener is registered.

target - a reference to the element from which the event was originally dispatched. This might be a child element to the element on which the event listener is registered. If you thought this should be EventTarget & T, see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/11508#issuecomment-256045682

Type Parameters

Hierarchy

Properties

altKey: boolean
bubbles: boolean
button: number
buttons: number
cancelable: boolean
clientX: number
clientY: number
ctrlKey: boolean
currentTarget: EventTarget & T
defaultPrevented: boolean
detail: number
eventPhase: number
isTrusted: boolean
metaKey: boolean
movementX: number
movementY: number
nativeEvent: E
pageX: number
pageY: number
relatedTarget: null | EventTarget
screenX: number
screenY: number
shiftKey: boolean
target: EventTarget
timeStamp: number
type: string

Methods

  • See DOM Level 3 Events spec. for a list of valid (case-sensitive) arguments to this method.

    Parameters

    Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns void

  • Returns void

  • Returns void

Generated using TypeDoc