property screenX

(r/o) int32 screenX;

Typ

Zugriff

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

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