mouseY property

num mouseY

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

If you need both mouseX and mouseY, it is more efficient to use the mousePosition getter.

Implementation

num get mouseY {
  var mp = this.mousePosition;
  return (mp != null) ? mp.y : 0.0;
}