Skip to content

Documentation / @finchart/dom / pointerInteractions

Function: pointerInteractions() ​

pointerInteractions(element, options?): InteractionHandler

Defined in: dom/src/pointer.ts:84

The contract factory for the default pointer interactions — hides the implementation class and hands back an InteractionHandler. The fine-grained toggles (pan, zoom, crosshair, doubleClickReset, kineticScroll, keyboard, zoomSpeed) all come in through this door:

ts
const deps = browserDeps({ pointer: { kineticScroll: true } });

The element is received when this is created — connect(target) has no element (the core contract has no element type). browserDeps binds the container in here.

Parameters ​

element ​

HTMLElement

options? ​

PointerInteractionsOptions = {}

Returns ​

InteractionHandler