Class: PointerEventsTarget
@cognite/reveal.PointerEventsTarget
This class fires click, double click, hover end similar events at a PointerEvents onClick will fired if it's a single click, and the mouse hasn't move too much If onDoubleClick is fired, the onClick will not be fired onHover will be fired only if the mouse button is not pressed and not to often If mouse, the onDoubleClick and onClick is fired when the left mouse button is pressed onPointerDrag will be fired wnen the mouse button is pressed and the mouse is moving
Constructors
constructor
• new PointerEventsTarget(domElement
, events
): PointerEventsTarget
Parameters
Name | Type |
---|---|
domElement | HTMLElement |
events | PointerEvents |
Returns
Defined in
packages/utilities/src/events/PointerEventsTarget.ts:49
Methods
addEventListeners
▸ addEventListeners(): void
Returns
void
Defined in
packages/utilities/src/events/PointerEventsTarget.ts:58
removeEventListeners
▸ removeEventListeners(): void
Returns
void