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

Collision mask is off when using increased accessibility text size on Windows #6058

Open
1 task done
ClementPasteau opened this issue Dec 11, 2023 · 2 comments
Open
1 task done
Labels
😤Non optimal UI A bug/issue where the UI is usable but not optimal

Comments

@ClementPasteau
Copy link
Collaborator

ClementPasteau commented Dec 11, 2023

Is there an existing issue for this?

Describe the bug

image

Steps to reproduce

  1. On Windows, change accessibility text size to > 100% (something like 120%)
  2. Create a sprite with an animation and add an image
  3. Use custom collision mask and play around with positions
  4. See the collision mask is off the pixels of the image below.

GDevelop platform

Desktop, Web, Mobile

GDevelop version

5.3.181

Platform info

Windows 11

Additional context

It looks like the image is getting zoomed in when the text size accessibility setting is changing.
Whereas the collision mask, displayed as a SVG, is not being zoomed in.
This creates an offset.

I can't seem to find which prop makes the image getting bigger with that setting (could it be the transform: scale(x) ? Doesn't seem like it should)
And I can't make the svg follow the same behavior, I've tried using % instead of px, but same result.

@ClementPasteau ClementPasteau added 🐛 bug This is a bug impacting users 😤Non optimal UI A bug/issue where the UI is usable but not optimal and removed 🐛 bug This is a bug impacting users labels Dec 11, 2023
@ClementPasteau
Copy link
Collaborator Author

Note that it is just a rendering issue and doesn't affect the actual position of the mask, so it just brings confusion.

@ClementPasteau ClementPasteau changed the title Collision mask is off when using Collision mask is off when using increased accessibility text size on Windows Dec 12, 2023
@RebornOfc
Copy link

The platform don't really matters, I got it multiple times in my tv and my phone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
😤Non optimal UI A bug/issue where the UI is usable but not optimal
Projects
None yet
Development

No branches or pull requests

2 participants