,, , ,, , , , image/svg+xml , image/svg+xml , interact.js , image/svg+xml , ,, , ,

@interactjs / pointer-events/PointerEvent / PointerEvent

Class: PointerEvent<T>

pointer-events/PointerEvent.PointerEvent

Type parameters

NameType
Textends string = any

Hierarchy

Table of contents

Properties

Methods

Properties

clientX

• clientX: number

Defined in

pointer-events/PointerEvent.ts:14


clientY

• clientY: number

Defined in

pointer-events/PointerEvent.ts:15


count

• Optional count: number

Defined in

pointer-events/holdRepeat.ts:18


currentTarget

• currentTarget: Node

Inherited from

BaseEvent.currentTarget

Defined in

core/BaseEvent.ts:8


double

• double: boolean

Defined in

pointer-events/PointerEvent.ts:11


dt

• dt: number

Defined in

pointer-events/PointerEvent.ts:16


eventable

• eventable: any

Defined in

pointer-events/PointerEvent.ts:17


immediatePropagationStopped

• immediatePropagationStopped: boolean = false

Inherited from

BaseEvent.immediatePropagationStopped

Defined in

core/BaseEvent.ts:13


interactable

• interactable: Interactable

Inherited from

BaseEvent.interactable

Defined in

core/BaseEvent.ts:9


interaction

• interaction: InteractionProxy<never>

Inherited from

BaseEvent.interaction

Defined in

core/BaseEvent.ts:40


originalEvent

• originalEvent: PointerEventType

Defined in

pointer-events/PointerEvent.ts:8


pageX

• pageX: number

Defined in

pointer-events/PointerEvent.ts:12


pageY

• pageY: number

Defined in

pointer-events/PointerEvent.ts:13


pointerId

• pointerId: number

Defined in

pointer-events/PointerEvent.ts:9


pointerType

• pointerType: string

Defined in

pointer-events/PointerEvent.ts:10


propagationStopped

• propagationStopped: boolean = false

Inherited from

BaseEvent.propagationStopped

Defined in

core/BaseEvent.ts:14


target

• target: EventTarget

Inherited from

BaseEvent.target

Defined in

core/BaseEvent.ts:7


timeStamp

• timeStamp: number

Inherited from

BaseEvent.timeStamp

Defined in

core/BaseEvent.ts:12


type

• type: T

Overrides

BaseEvent.type

Defined in

pointer-events/PointerEvent.ts:7

Methods

_addOrigin

▸ _addOrigin(«destructured»): PointerEvent<T>

Parameters

NameType
«destructured»Point

Returns

PointerEvent<T>

Defined in

pointer-events/PointerEvent.ts:69


_subtractOrigin

▸ _subtractOrigin(«destructured»): PointerEvent<T>

Parameters

NameType
«destructured»Point

Returns

PointerEvent<T>

Defined in

pointer-events/PointerEvent.ts:60


preventDefault

â–¸ preventDefault(): void

Prevent the default behaviour of the original Event

Returns

void

Overrides

BaseEvent.preventDefault

Defined in

pointer-events/PointerEvent.ts:81


stopImmediatePropagation

â–¸ stopImmediatePropagation(): void

Don’t call listeners on the remaining targets

Returns

void

Inherited from

BaseEvent.stopImmediatePropagation

Defined in

core/BaseEvent.ts:32


stopPropagation

â–¸ stopPropagation(): void

Don’t call any other listeners (even on the current target)

Returns

void

Inherited from

BaseEvent.stopPropagation

Defined in

core/BaseEvent.ts:25