Possible error in "story.js" code?

May 16, 2013

I design e-learning courses using Storyline and our company's web developer helps with the backend LMS stuff. We were trying to troubleshoot the resizing of browser windows to optimal size in different browsers and came across a bit of code in the "story.js" file that seems like an error. The following lines of original code from lines 468-498 are:

function GetXPos()
{
    var nResult = 0;
   
    if (IE)
    {
        nResult = window.screenLeft;
    }
    else
    {
        nResult = window.screenX;
    }
   
    return nResult;
}

function GetYPos()
{
    var nResult = 0;
   
    if (IE)
    {
        nResult = window.screenTop;
    }
    else
    {
        nResult = window.screenX;
    }
   
    return nResult;
}

Shouldn't the bolded line say "nResult = window.screenY;" instead? When changed to "screenY", the resizing worked properly. We thought it may have just been a simple copy and paste error...

1 Reply

This discussion is closed. You can start a new discussion or contact Articulate Support.