mouseY property

double mouseY

The y-coordinate of the mouse or touch position in the local coordinate system of this object.

Throws an exception if this object is not a descendant of the Stage.

Implementation

double get mouseY {
  if (inStage) {
    return globalToLocal(
      _sHelperPoint.setTo(
        stage!.pointer!.mouseX,
        stage!.pointer!.mouseY,
      ),
      _sHelperPoint,
    ).y;
  } else {
    throw 'To get mouseY object needs to be a descendant of Stage.';
  }
}