property frameX

(r/o) int32 frameX;

Typ

Zugriff

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

function onMouseDown()
{
    var eventObj = shell.currentEvent();
    if (eventObj)
    {
        var frameX = eventObj.frameX;
        if (frameX >= 0)
        {
            // the mouse is at the right side of (or on) the left edge of the frame
        }
        else
        {
            // the mouse is at the left side of the left edge of the frame
        }
    }
}