<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
}
}
}