trackPointer method

dynamic trackPointer(
  1. dynamic event
)

Implementation

trackPointer(event) {
  var position = _pointerPositions[event.pointerId];

  if (position == null) {
    position = Vector2();
    _pointerPositions[event.pointerId] = position;
  }

  position.set(event.pageX, event.pageY);
}