Problem Description
When exporting the project as HTML for web with extra space for ads (in this case 160px on the right) there are two issues (can be seen in examples below)
1. In FF there is a "fantom" overflow, couple of pixels on the bottom of the page
2. "Press any key" is not working until you click on the canvas to "get it in focus" and then click...
Open the folowing link in FF: https://dl.dropboxusercontent.com/u/611 ... index.html
Press down arrow on keyboard, you will see some scroling happen (couple of px). "Press any key" event should be triggered once you pressed down arrow, however, you must first click on the layout and then press any key to trigger "Press any key" event and go to next layout.
When you export the project without 160px ad space, then no scrolling is happening when you press down arrow, and "Press any key" event is triggered immediately, can be seen here: https://dl.dropboxusercontent.com/u/611 ... index.html
Attach a Capx
https://dl.dropboxusercontent.com/u/6116050/c2bug.capx
Description of Capx
Basic platformer setup with 2 layouts, on first layout only one event is defined "On any key press go to layout 2"
Steps to Reproduce Bug
- Export game as HTML5 with 160px (or any other number) margin for ads on the right (or left?)
- Uplaod to server
- Open game in browser (FF will have an extra bug, see above)
Observed Result
In FF some scrolling happens (couple of px), and "Press any key" is not working until you firs click on game canvas.
Expected Result
No scrolling should happen and "press any key" should work without first clicking on the gmae canvas.
Affected Browsers
- Chrome: YES
- FireFox: YES
- Internet Explorer: YES
Operating System and Service Pack
Windows 8.1 Pro
Construct 2 Version ID
Relese 206 64bit