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

Fixing resize and mouse input coordinates #4734

Closed

Conversation

zet23t
Copy link
Contributor

@zet23t zet23t commented Jan 28, 2025

Also replacing hardcoded canvas id references with module variable usages

I tested these changes on my somewhat non-standard blog (using different canvas ids and using a different init logic). Testing it with the window flags example is something I want to do before merging this.

Also replacing hardcoded canvas id references with module variable usages
@zet23t
Copy link
Contributor Author

zet23t commented Jan 29, 2025

All right. I will try your test in my setup to see how it behaves on my machine and in my non standard setup. Eventually there is another hard coded canvas ID somewhere.

@zet23t zet23t closed this Jan 29, 2025
@zet23t
Copy link
Contributor Author

zet23t commented Jan 29, 2025

The problems start when embedding the canvas into a website and enabling the resizable flag.

    SetConfigFlags(FLAG_WINDOW_RESIZABLE);

See the gif how the provided test behaves, when setting that flag. I will also add a test for embedded canvas elements, I think there are then issues with fullscreen modes too.

raylib-resizable-bug

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

Successfully merging this pull request may close these issues.

1 participant