Browser Request/Cancel Fullscreen Snags [2 bugs]

Bugs will be moved here once resolved.

Post » Fri Aug 22, 2014 12:11 am

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
no browser fullscreen IE11.capx


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
You do not have the required permissions to view the files attached to this post.
A big fan of JavaScript.
B
74
S
20
G
69
Posts: 2,207
Reputation: 43,836

Post » Tue Aug 26, 2014 5:01 pm

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.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,762

Post » Tue Aug 26, 2014 5:45 pm

Thanks @Ashley!
A big fan of JavaScript.
B
74
S
20
G
69
Posts: 2,207
Reputation: 43,836

Post » Wed Aug 27, 2014 11:12 am

Ashley wrote: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
B
38
S
11
G
5
Posts: 485
Reputation: 5,340

Post » Sat Sep 19, 2015 12:14 pm

fldr wrote:
Ashley wrote: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.
B
10
S
2
Posts: 9
Reputation: 675


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests