OffsetPair.fromEventPosition constructor

OffsetPair.fromEventPosition(
  1. PointerEvent event
)

Creates a OffsetPair from PointerEvent.localPosition and PointerEvent.position.

Implementation

OffsetPair.fromEventPosition(PointerEvent event)
    : local = event.localPosition,
      global = event.position;