Browser Request/Cancel Fullscreen Snags [2 bugs]

0 favourites
  • 5 posts
From the Asset Store
2D Tile Set
$2.99 USD
Tile map for your 2d platformer games, custom sets available on request
  • Problem Description

    These problems may be associated with each other, hence this double bug report.

    bug 1. When running in IE11 the Browser : Request Fullscreen does not function (the blog here states that this api should be supported).

    bug 2. When running in Node Webkit, the Browser : Cancel Fullscreen causes the window to resize but the center of the viewport appears to be the origin instead of the center of the layout. This only happens if Fullscreen In Browser is set to Off.

    Edit to add that 1/2 way through my Ludum Dare game and I cannot use Fullscreen in browser set to off - for some reason it scales the layout down to something like 0.9 scale. Weird - might be associated with bug 2.

    Attach a Capx

    [attachment=0:2v4w2cir][/attachment:2v4w2cir]

    Description of Capx

    The capx opens a Fullscreen Off display 800x450 with some expanding instructions and a sprite to click. Select the browser to test and run the layout. Click on the sprite to toggle the window between Browser : Request Full Screen and Browser : Cancel Fullscreen.

    Steps to Reproduce Bug

    • Bug 1. Run in IE11 and click the sprite - the browser does not go full screen.
    • Bug 2. Run in Node Webkit; click the sprite to go full screen then click the sprite again to cancel full screen and you see the display centers on or near the origin instead of the middle of the layout.

    Observed Result

    As above.

    Expected Result

    The browser object should expand to full screen and should cancel full screen correctly.

    Affected Browsers

    • Chrome: (NO)
    • FireFox: (NO)
    • Internet Explorer: (YES)
    • Node Webkit: (YES)

    Operating System and Service Pack

    W8.1 x64

    Construct 2 Version ID

    r178

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Bug 1: I just cannot figure out what is going on here. I'm sure I remember it used to work, and IE11 has been through some updates recently, and perhaps they broke it... I can see in the debugger it's calling the function to request fullscreen, and IE just ignores it. No errors, no messages, just nothing happens. I could reproduce the same issue on Firefox for Android and Firefox OS so I'm not sure if it's something wrong with C2 or what, since it works correctly on Chrome desktop and Chrome for Android, and Firefox desktop. I submitted bugs to Microsoft and Mozilla to see what they make of it:

    https://connect.microsoft.com/IE/feedbackdetail/view/956312/ie11-silently-ignores-msrequestfullscreen

    https://bugzilla.mozilla.org/show_bug.cgi?id=1058700

    Bug 2: this won't be fixed - fullscreen 'off' is simply not supported in node-webkit, just choose a fullscreen mode (e.g. letterbox) and set the window size, the result is the same.

  • Thanks Ashley!

  • Bug 1: I just cannot figure out what is going on here. I'm sure I remember it used to work, and IE11 has been through some updates recently, and perhaps they broke it... I can see in the debugger it's calling the function to request fullscreen, and IE just ignores it. No errors, no messages, just nothing happens. I could reproduce the same issue on Firefox for Android and Firefox OS so I'm not sure if it's something wrong with C2 or what, since it works correctly on Chrome desktop and Chrome for Android, and Firefox desktop. I submitted bugs to Microsoft and Mozilla to see what they make of it:

    https://connect.microsoft.com/IE/feedbackdetail/view/956312/ie11-silently-ignores-msrequestfullscreen

    https://bugzilla.mozilla.org/show_bug.cgi?id=1058700

    Bug 2: this won't be fixed - fullscreen 'off' is simply not supported in node-webkit, just choose a fullscreen mode (e.g. letterbox) and set the window size, the result is the same.

    thats still the bug i reported some time ago where you sayd it does function correctly

    its not repeatly clicking the button what fires the fullscreen event on firefoxos, it only works with a "double" touch

  • > Bug 1: I just cannot figure out what is going on here. I'm sure I remember it used to work, and IE11 has been through some updates recently, and perhaps they broke it... I can see in the debugger it's calling the function to request fullscreen, and IE just ignores it. No errors, no messages, just nothing happens. I could reproduce the same issue on Firefox for Android and Firefox OS so I'm not sure if it's something wrong with C2 or what, since it works correctly on Chrome desktop and Chrome for Android, and Firefox desktop. I submitted bugs to Microsoft and Mozilla to see what they make of it:

    >

    > https://connect.microsoft.com/IE/feedbackdetail/view/956312/ie11-silently-ignores-msrequestfullscreen

    > https://bugzilla.mozilla.org/show_bug.cgi?id=1058700

    >

    > Bug 2: this won't be fixed - fullscreen 'off' is simply not supported in node-webkit, just choose a fullscreen mode (e.g. letterbox) and set the window size, the result is the same.

    >

    thats still the bug i reported some time ago where you sayd it does function correctly

    its not repeatly clicking the button what fires the fullscreen event on firefoxos, it only works with a "double" touch

    Thanks Flrd, changing onTouch for onTap in the button that makes the call to the fullscreen mode worked for me in IE11. In Firefox and Chrome onTouch works without problem. An the fullscreen availability runs fine in those three browsers.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)