@interactjs / pointer-events/PointerEvent / PointerEvent
Class: PointerEvent<T>
pointer-events/PointerEvent.PointerEvent
Type parameters
Name | Type |
---|---|
T | extends string = any |
Hierarchy
BaseEvent
<never
>↳
PointerEvent
Table of contents
Properties
- clientX
- clientY
- count
- currentTarget
- double
- dt
- eventable
- immediatePropagationStopped
- interactable
- interaction
- originalEvent
- pageX
- pageY
- pointerId
- pointerType
- propagationStopped
- target
- timeStamp
- type
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
Defined in
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
interactable
• interactable: Interactable
Inherited from
Defined in
interaction
• interaction: InteractionProxy
<never
>
Inherited from
Defined in
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
Defined in
target
• target: EventTarget
Inherited from
Defined in
timeStamp
• timeStamp: number
Inherited from
Defined in
type
• type: T
Overrides
Defined in
pointer-events/PointerEvent.ts:7
Methods
_addOrigin
▸ _addOrigin(«destructured»
): PointerEvent
<T
>
Parameters
Name | Type |
---|---|
«destructured» | Point |
Returns
PointerEvent
<T
>
Defined in
pointer-events/PointerEvent.ts:69
_subtractOrigin
▸ _subtractOrigin(«destructured»
): PointerEvent
<T
>
Parameters
Name | Type |
---|---|
«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
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
stopPropagation
â–¸ stopPropagation(): void
Don’t call any other listeners (even on the current target)
Returns
void