property boxY

(r/o) int32 boxY;

Typ

Zugriff

This property returns the mouse cursor's vertical offset from the event's targetBox's top-left corner.
<box on:mouseDown="onMouseDown();"/>

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