Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full screen on click #8

Open
hershko opened this issue Aug 7, 2019 · 2 comments
Open

Full screen on click #8

hershko opened this issue Aug 7, 2019 · 2 comments

Comments

@hershko
Copy link

hershko commented Aug 7, 2019

The game goes full screen when I first click on the canvas.

For now I stopped this behaviour by adding a Fullscreen.jslib to the project with this code:

var LibraryFullscreen = {
    JS_SystemInfo_HasFullscreen: function()
    {
        return 0;
    }
};
mergeInto(LibraryManager.library, LibraryFullscreen);

I'm on the latest version of Chrome, if it matters (looks like it doesn't happen on Firefox).
Thanks for the help :)

@Lonyin-Chan
Copy link

Where do you put this file? In build folder or with index?

The game goes full screen when I first click on the canvas.

For now I stopped this behaviour by adding a Fullscreen.jslib to the project with this code:

var LibraryFullscreen = {
    JS_SystemInfo_HasFullscreen: function()
    {
        return 0;
    }
};
mergeInto(LibraryManager.library, LibraryFullscreen);

I'm on the latest version of Chrome, if it matters (looks like it doesn't happen on Firefox).
Thanks for the help :)

@Falcon5077
Copy link

I have same issue. Somebody Help Me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants