property screenY

(r/o) int32 screenY;

Typ

Zugriff

This property returns the mouse cursor's vertical offset from the screen's origin point.
<box on:mouseDown="onMouseDown();"/>

function onMouseDown()
{
    var eventObj = shell.currentEvent();
    if (eventObj)
    {
        var screenY = eventObj.screenY;
        if (screenY >= 0)
        {
            // the mouse is below (or on) the top edge of the screen
        }
        else
        {
            // the mouse is above the top edge of the screen
        }
    }
}