mousePosition property

Point<num> mousePosition

The position of the mouse relative to the local coordinate system of the display object.

Implementation

Point<num> get mousePosition {
  var stage = this.stage;
  if (stage == null) return null;
  var localPoint = Point<num>(0.0, 0.0);
  return this.globalToLocal(stage.mousePosition, localPoint);
}