OffsetPair.fromEventDelta constructor

OffsetPair.fromEventDelta(
  1. PointerEvent event
)

Creates a OffsetPair from PointerEvent.localDelta and PointerEvent.delta.

Implementation

OffsetPair.fromEventDelta(PointerEvent event)
    : local = event.localDelta,
      global = event.delta;