OffsetPair.fromEventPosition constructor
- PointerEvent event
Creates a OffsetPair from PointerEvent.localPosition and PointerEvent.position.
Implementation
OffsetPair.fromEventPosition(PointerEvent event)
: local = event.localPosition,
global = event.position;